* [akpm-mm:mm-nonmm-unstable 82/133] include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve'
@ 2025-11-15 19:06 kernel test robot
2025-11-15 23:19 ` Pasha Tatashin
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-11-15 19:06 UTC (permalink / raw)
To: Pasha Tatashin
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Mike Rapoport (Microsoft), Pratyush Yadav
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head: 4fc88c237bfe11bde443e104428aac56e63a997f
commit: 88316955b5b1b4cb0cb2fad416f7e8dde9b246a0 [82/133] kho: introduce high-level memory allocation API
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20251116/202511160314.OK0OGRXl-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251116/202511160314.OK0OGRXl-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511160314.OK0OGRXl-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from mm/mm_init.c:33:
>> include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve' [-Wmissing-prototypes]
108 | void *kho_alloc_preserve(size_t size)
| ^
include/linux/kexec_handover.h:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
108 | void *kho_alloc_preserve(size_t size)
| ^
| static
>> include/linux/kexec_handover.h:113:6: warning: no previous prototype for function 'kho_unpreserve_free' [-Wmissing-prototypes]
113 | void kho_unpreserve_free(void *mem) { }
| ^
include/linux/kexec_handover.h:113:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
113 | void kho_unpreserve_free(void *mem) { }
| ^
| static
>> include/linux/kexec_handover.h:114:6: warning: no previous prototype for function 'kho_restore_free' [-Wmissing-prototypes]
114 | void kho_restore_free(void *mem) { }
| ^
include/linux/kexec_handover.h:114:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
114 | void kho_restore_free(void *mem) { }
| ^
| static
3 warnings generated.
vim +/kho_alloc_preserve +108 include/linux/kexec_handover.h
107
> 108 void *kho_alloc_preserve(size_t size)
109 {
110 return ERR_PTR(-EOPNOTSUPP);
111 }
112
> 113 void kho_unpreserve_free(void *mem) { }
> 114 void kho_restore_free(void *mem) { }
115
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [akpm-mm:mm-nonmm-unstable 82/133] include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve'
2025-11-15 19:06 [akpm-mm:mm-nonmm-unstable 82/133] include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve' kernel test robot
@ 2025-11-15 23:19 ` Pasha Tatashin
0 siblings, 0 replies; 2+ messages in thread
From: Pasha Tatashin @ 2025-11-15 23:19 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Mike Rapoport (Microsoft), Pratyush Yadav
On Sat, Nov 15, 2025 at 2:06 PM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
> head: 4fc88c237bfe11bde443e104428aac56e63a997f
> commit: 88316955b5b1b4cb0cb2fad416f7e8dde9b246a0 [82/133] kho: introduce high-level memory allocation API
> config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20251116/202511160314.OK0OGRXl-lkp@intel.com/config)
> compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251116/202511160314.OK0OGRXl-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202511160314.OK0OGRXl-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> In file included from mm/mm_init.c:33:
> >> include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve' [-Wmissing-prototypes]
> 108 | void *kho_alloc_preserve(size_t size)
> | ^
> include/linux/kexec_handover.h:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 108 | void *kho_alloc_preserve(size_t size)
> | ^
> | static
> >> include/linux/kexec_handover.h:113:6: warning: no previous prototype for function 'kho_unpreserve_free' [-Wmissing-prototypes]
> 113 | void kho_unpreserve_free(void *mem) { }
> | ^
> include/linux/kexec_handover.h:113:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 113 | void kho_unpreserve_free(void *mem) { }
> | ^
> | static
> >> include/linux/kexec_handover.h:114:6: warning: no previous prototype for function 'kho_restore_free' [-Wmissing-prototypes]
> 114 | void kho_restore_free(void *mem) { }
> | ^
> include/linux/kexec_handover.h:114:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 114 | void kho_restore_free(void *mem) { }
> | ^
> | static
> 3 warnings generated.
>
>
> vim +/kho_alloc_preserve +108 include/linux/kexec_handover.h
>
> 107
> > 108 void *kho_alloc_preserve(size_t size)
> 109 {
> 110 return ERR_PTR(-EOPNOTSUPP);
> 111 }
> 112
> > 113 void kho_unpreserve_free(void *mem) { }
> > 114 void kho_restore_free(void *mem) { }
> 115
>
Sorry, missed "static inline"
For, this another warnings:
diff --git a/include/linux/kexec_handover.h b/include/linux/kexec_handover.h
index 38a9487a1a00..dde952227b88 100644
--- a/include/linux/kexec_handover.h
+++ b/include/linux/kexec_handover.h
@@ -105,13 +105,13 @@ static inline int kho_unpreserve_vmalloc(struct
kho_vmalloc *preservation)
return -EOPNOTSUPP;
}
-void *kho_alloc_preserve(size_t size)
+static inline void *kho_alloc_preserve(size_t size)
{
return ERR_PTR(-EOPNOTSUPP);
}
-void kho_unpreserve_free(void *mem) { }
-void kho_restore_free(void *mem) { }
+static inline void kho_unpreserve_free(void *mem) { }
+static inline void kho_restore_free(void *mem) { }
static inline struct folio *kho_restore_folio(phys_addr_t phys)
{
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-15 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 19:06 [akpm-mm:mm-nonmm-unstable 82/133] include/linux/kexec_handover.h:108:7: warning: no previous prototype for function 'kho_alloc_preserve' kernel test robot
2025-11-15 23:19 ` Pasha Tatashin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).