tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d8e87774068af213ab5b058b1b114dc397b577aa commit: 7ceeb4e77fecb3e02527fe7311b7f7c01d7281a3 [6099/6155] kprobes,lib: kretprobe scalability improvement config: powerpc-buildonly-randconfig-r001-20221107 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 7aa90b21b453d1ca52fdfccfd7e01e61d9e5b1f1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7ceeb4e77fecb3e02527fe7311b7f7c01d7281a3 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 7ceeb4e77fecb3e02527fe7311b7f7c01d7281a3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash lib/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> lib/test_objpool.c:80:7: warning: no previous prototype for function 'ot_kzalloc' [-Wmissing-prototypes] void *ot_kzalloc(long size) ^ lib/test_objpool.c:80:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void *ot_kzalloc(long size) ^ static >> lib/test_objpool.c:89:6: warning: no previous prototype for function 'ot_kfree' [-Wmissing-prototypes] void ot_kfree(void *ptr, long size) ^ lib/test_objpool.c:89:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ot_kfree(void *ptr, long size) ^ static >> lib/test_objpool.c:97:7: warning: no previous prototype for function 'ot_vmalloc' [-Wmissing-prototypes] void *ot_vmalloc(long size) ^ lib/test_objpool.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void *ot_vmalloc(long size) ^ static >> lib/test_objpool.c:106:6: warning: no previous prototype for function 'ot_vfree' [-Wmissing-prototypes] void ot_vfree(void *ptr, long size) ^ lib/test_objpool.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ot_vfree(void *ptr, long size) ^ static 4 warnings generated. vim +/ot_kzalloc +80 lib/test_objpool.c 75 76 /* 77 * memory leakage checking 78 */ 79 > 80 void *ot_kzalloc(long size) 81 { 82 void *ptr = kzalloc(size, GFP_KERNEL); 83 84 if (ptr) 85 atomic_long_add(size, &g_ot_data.kmalloc.alloc); 86 return ptr; 87 } 88 > 89 void ot_kfree(void *ptr, long size) 90 { 91 if (!ptr) 92 return; 93 atomic_long_add(size, &g_ot_data.kmalloc.free); 94 kfree(ptr); 95 } 96 > 97 void *ot_vmalloc(long size) 98 { 99 void *ptr = vmalloc(size); 100 101 if (ptr) 102 atomic_long_add(size, &g_ot_data.vmalloc.alloc); 103 return ptr; 104 } 105 > 106 void ot_vfree(void *ptr, long size) 107 { 108 if (!ptr) 109 return; 110 atomic_long_add(size, &g_ot_data.vmalloc.free); 111 vfree(ptr); 112 } 113 -- 0-DAY CI Kernel Test Service https://01.org/lkp