tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b6fc3fddade7a194bd141a49f2689e50f796ef46 commit: 3f6b5157c510e46af5e8067fd309c2a575264b02 [5980/6121] lib: objpool test module added config: sh-allmodconfig compiler: sh4-linux-gcc (GCC) 12.1.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3f6b5157c510e46af5e8067fd309c2a575264b02 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 3f6b5157c510e46af5e8067fd309c2a575264b02 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh 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:82:7: warning: no previous prototype for 'ot_kzalloc' [-Wmissing-prototypes] 82 | void *ot_kzalloc(long size) | ^~~~~~~~~~ >> lib/test_objpool.c:91:6: warning: no previous prototype for 'ot_kfree' [-Wmissing-prototypes] 91 | void ot_kfree(void *ptr, long size) | ^~~~~~~~ >> lib/test_objpool.c:99:7: warning: no previous prototype for 'ot_vmalloc' [-Wmissing-prototypes] 99 | void *ot_vmalloc(long size) | ^~~~~~~~~~ >> lib/test_objpool.c:108:6: warning: no previous prototype for 'ot_vfree' [-Wmissing-prototypes] 108 | void ot_vfree(void *ptr, long size) | ^~~~~~~~ vim +/ot_kzalloc +82 lib/test_objpool.c 77 78 /* 79 * memory leakage checking 80 */ 81 > 82 void *ot_kzalloc(long size) 83 { 84 void *ptr = kzalloc(size, GFP_KERNEL); 85 86 if (ptr) 87 atomic_long_add(size, &g_ot_data.kmalloc.alloc); 88 return ptr; 89 } 90 > 91 void ot_kfree(void *ptr, long size) 92 { 93 if (!ptr) 94 return; 95 atomic_long_add(size, &g_ot_data.kmalloc.free); 96 kfree(ptr); 97 } 98 > 99 void *ot_vmalloc(long size) 100 { 101 void *ptr = vmalloc(size); 102 103 if (ptr) 104 atomic_long_add(size, &g_ot_data.vmalloc.alloc); 105 return ptr; 106 } 107 > 108 void ot_vfree(void *ptr, long size) 109 { 110 if (!ptr) 111 return; 112 atomic_long_add(size, &g_ot_data.vmalloc.free); 113 vfree(ptr); 114 } 115 -- 0-DAY CI Kernel Test Service https://01.org/lkp