[openeuler:OLK-6.6 2679/2679] arch/x86/mm/pat/set_memory.c:127:22: warning: no previous prototype for function 'x86_get_direct_pages_count'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: ef5847533f910a4b3aca1cd1c855b02d60389ad3 [2679/2679] bpf-rvi: Add bpf_x86_direct_pages kfunc config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250815/202508150235.tTN5yutB-lkp@i...) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150235.tTN5yutB-lkp@i...) 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/202508150235.tTN5yutB-lkp@intel.com/ All warnings (new ones prefixed by >>):
arch/x86/mm/pat/set_memory.c:127:22: warning: no previous prototype for function 'x86_get_direct_pages_count' [-Wmissing-prototypes] 127 | const unsigned long *x86_get_direct_pages_count(void) | ^ arch/x86/mm/pat/set_memory.c:127:7: note: declare 'static' if the function is not intended to be used outside of this translation unit 127 | const unsigned long *x86_get_direct_pages_count(void) | ^ | static 1 warning generated.
vim +/x86_get_direct_pages_count +127 arch/x86/mm/pat/set_memory.c 125 126 #ifdef CONFIG_BPF_RVI
127 const unsigned long *x86_get_direct_pages_count(void) 128 { 129 return direct_pages_count; 130 } 131 #endif 132 #else 133 static inline void split_page_count(int level) { } 134 #endif 135
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot