tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git kprobe_multi_kmod head: 13e547c472fd67b9ac56d181c40ac326b934b4da commit: c421bef8d48a200efea6d7e9fe54ee37b808497f [2/9] kallsyms: Make module_kallsyms_on_each_symbol generally available config: openrisc-randconfig-r012-20221003 compiler: or1k-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/jolsa/perf.git/commit/?id=c421bef8d48a200efea6d7e9fe54ee37b808497f 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 c421bef8d48a200efea6d7e9fe54ee37b808497f # 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=openrisc SHELL=/bin/bash drivers/hid/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/ftrace.h:13, from include/linux/kprobes.h:28, from include/linux/kgdb.h:19, from include/linux/fb.h:6, from drivers/hid/hid-picolcd_core.c:15: >> include/linux/kallsyms.h:166:19: error: redefinition of 'kallsyms_on_each_symbol' 166 | static inline int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/input.h:19, from include/linux/hid.h:24, from drivers/hid/hid-picolcd_core.c:10: include/linux/module.h:887:19: note: previous definition of 'kallsyms_on_each_symbol' with type 'int(int (*)(void *, const char *, struct module *, long unsigned int), void *)' 887 | static inline int kallsyms_on_each_symbol(int (*fn)(void *, const char *, | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/kallsyms_on_each_symbol +166 include/linux/kallsyms.h e4a8ca3baa5557 Arnd Bergmann 2017-11-13 165 d721def7392a73 Jiri Olsa 2022-05-10 @166 static inline int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, d721def7392a73 Jiri Olsa 2022-05-10 167 unsigned long), void *data) d721def7392a73 Jiri Olsa 2022-05-10 168 { d721def7392a73 Jiri Olsa 2022-05-10 169 return -EOPNOTSUPP; d721def7392a73 Jiri Olsa 2022-05-10 170 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 171 #endif /*CONFIG_KALLSYMS*/ ^1da177e4c3f41 Linus Torvalds 2005-04-16 172 :::::: The code at line 166 was first introduced by commit :::::: d721def7392a7348ffb9f3583b264239cbd3702c kallsyms: Make kallsyms_on_each_symbol generally available :::::: TO: Jiri Olsa :::::: CC: Alexei Starovoitov -- 0-DAY CI Kernel Test Service https://01.org/lkp