tree: git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git new_module_alloc_build_test head: 95a003a975385a74057269799edb08d489f9d26b commit: 95a003a975385a74057269799edb08d489f9d26b [3/3] module: replace module_layout with module_memory config: parisc-randconfig-r002-20230105 compiler: hppa-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/song/md.git/commit/?id=95a003a975385a74057269799edb08d489f9d26b git remote add song-md git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git git fetch --no-tags song-md new_module_alloc_build_test git checkout 95a003a975385a74057269799edb08d489f9d26b # 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=parisc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/parisc/kernel/module.c: In function 'in_local': >> arch/parisc/kernel/module.c:85:9: error: implicit declaration of function 'for_each_module_memory_type' [-Werror=implicit-function-declaration] 85 | for_each_module_memory_type(type) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> arch/parisc/kernel/module.c:85:42: error: expected ';' before '{' token 85 | for_each_module_memory_type(type) { | ^~ | ; arch/parisc/kernel/module.c:93:1: error: no return statement in function returning non-void [-Werror=return-type] 93 | } | ^ arch/parisc/kernel/module.c: In function 'module_finalize': arch/parisc/kernel/module.c:864:13: warning: variable 'symindex' set but not used [-Wunused-but-set-variable] 864 | int symindex = -1; | ^~~~~~~~ cc1: some warnings being treated as errors vim +/for_each_module_memory_type +85 arch/parisc/kernel/module.c 80 81 static inline bool in_local(struct module *me, void *loc) 82 { 83 enum mod_mem_type type; 84 > 85 for_each_module_memory_type(type) { 86 struct module_memory *mod_mem = &me->mod_mem[type]; 87 88 if (loc >= mod_mem->base && 89 lod <= (mod_mem->base + mod_mem->size)) 90 return true; 91 } 92 return false; 93 } 94 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests