Messages in this thread | | | Date | Mon, 23 May 2022 05:50:07 +0800 | From | kernel test robot <> | Subject | [madvenka786:orc_v2 17/20] arch/arm64/include/asm/module.h:19:8: error: redefinition of 'mod_arch_specific' |
| |
tree: https://github.com/madvenka786/linux orc_v2 head: ed9a1d5c036130a53c639eb712485e3d13ab4372 commit: 9da8b45b52cb2268200c44977bc7482d3bea70dc [17/20] arm64: Build the kernel with ORC information config: arm64-randconfig-r011-20220523 (https://download.01.org/0day-ci/archive/20220523/202205230540.ycgHZVXI-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1443dbaba6f0e57be066995db9164f89fb57b413) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/madvenka786/linux/commit/9da8b45b52cb2268200c44977bc7482d3bea70dc git remote add madvenka786 https://github.com/madvenka786/linux git fetch --no-tags madvenka786 orc_v2 git checkout 9da8b45b52cb2268200c44977bc7482d3bea70dc # 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=arm64 prepare
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/arm64/kernel/asm-offsets.c:10: In file included from include/linux/arm_sdei.h:8: In file included from include/acpi/ghes.h:5: In file included from include/acpi/apei.h:9: In file included from include/linux/acpi.h:15: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:33: >> arch/arm64/include/asm/module.h:19:8: error: redefinition of 'mod_arch_specific' struct mod_arch_specific { ^ include/asm-generic/module.h:10:8: note: previous definition is here struct mod_arch_specific ^ 1 error generated. make[2]: *** [scripts/Makefile.build:120: arch/arm64/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1194: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors.
vim +/mod_arch_specific +19 arch/arm64/include/asm/module.h
24af6c4e4e0f6e Ard Biesheuvel 2017-02-21 18 24af6c4e4e0f6e Ard Biesheuvel 2017-02-21 @19 struct mod_arch_specific { 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 20 #ifdef CONFIG_ARM64_MODULE_PLTS 24af6c4e4e0f6e Ard Biesheuvel 2017-02-21 21 struct mod_plt_sec core; 24af6c4e4e0f6e Ard Biesheuvel 2017-02-21 22 struct mod_plt_sec init; e71a4e1bebaf7f Ard Biesheuvel 2017-06-06 23 e71a4e1bebaf7f Ard Biesheuvel 2017-06-06 24 /* for CONFIG_DYNAMIC_FTRACE */ 3b23e4991fb66f Torsten Duwe 2019-02-08 25 struct plt_entry *ftrace_trampolines; fd045f6cd98ec4 Ard Biesheuvel 2015-11-24 26 #endif 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 27 #ifdef CONFIG_UNWINDER_ORC 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 28 unsigned int num_orcs; 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 29 int *orc_unwind_ip; 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 30 struct orc_entry *orc_unwind; 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 31 #endif 9da8b45b52cb22 Madhavan T. Venkataraman 2022-05-22 32 }; fd045f6cd98ec4 Ard Biesheuvel 2015-11-24 33
:::::: The code at line 19 was first introduced by commit :::::: 24af6c4e4e0f6e9803bec8dca0f7748afbb2bbf0 arm64: module: split core and init PLT sections
:::::: TO: Ard Biesheuvel <ard.biesheuvel@linaro.org> :::::: CC: Catalin Marinas <catalin.marinas@arm.com>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |