tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git kprobe_multi_kmod head: 21506678104e4734bd5ed8b124c53d75b61e8503 commit: 2f605260701583ef069962f00171d69c61f14303 [1/8] kallsyms: Make module_kallsyms_on_each_symbol generally available config: x86_64-rhel-8.3-syz compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=2f605260701583ef069962f00171d69c61f14303 git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git git fetch --no-tags jolsa-perf kprobe_multi_kmod git checkout 2f605260701583ef069962f00171d69c61f14303 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 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 >>): >> kernel/module/kallsyms.c:497:5: error: redefinition of 'module_kallsyms_on_each_symbol' 497 | int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/module/kallsyms.c:8: include/linux/module.h:887:19: note: previous definition of 'module_kallsyms_on_each_symbol' with type 'int(int (*)(void *, const char *, struct module *, long unsigned int), void *)' 887 | static inline int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/module_kallsyms_on_each_symbol +497 kernel/module/kallsyms.c 91fb02f31505dc Aaron Tomlin 2022-03-22 496 91fb02f31505dc Aaron Tomlin 2022-03-22 @497 int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, :::::: The code at line 497 was first introduced by commit :::::: 91fb02f31505dc22262b13a129550f470ab90a79 module: Move kallsyms support into a separate file :::::: TO: Aaron Tomlin :::::: CC: Luis Chamberlain -- 0-DAY CI Kernel Test Service https://01.org/lkp