Messages in this thread | | | Date | Mon, 23 May 2022 23:49:06 +0800 | From | kernel test robot <> | Subject | [arm-integrator:kernel-in-vmalloc-v5.18-rc1 8/17] ld.lld: error: undefined symbol: kernel_sec_start |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1 head: a9b76a04739b5b4dbad86664342c8945e83d8e95 commit: 06f73703766c6f636c79d04aae9f83446f1b8ff2 [8/17] ARM: Compile the kernel into VMALLOC config: arm-randconfig-r021-20220522 (https://download.01.org/0day-ci/archive/20220523/202205232354.0am40aBc-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 10c9ecce9f6096e18222a331c5e7d085bd813f75) 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 arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=06f73703766c6f636c79d04aae9f83446f1b8ff2 git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.18-rc1 git checkout 06f73703766c6f636c79d04aae9f83446f1b8ff2 # 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=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: kernel_sec_start >>> referenced by init.c >>> mm/init.o:(arm_memblock_init) in archive arch/arm/built-in.a >>> referenced by init.c >>> mm/init.o:(arm_memblock_init) in archive arch/arm/built-in.a -- >> mm/gup.c:1599:28: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion] pages[i] = virt_to_page(start); ^~~~~ arch/arm/include/asm/memory.h:441:53: note: expanded from macro 'virt_to_page' #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) ^~~~~ include/asm-generic/memory_model.h:18:41: note: expanded from macro '__pfn_to_page' #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) ^~~ arch/arm/include/asm/memory.h:322:53: note: passing argument to parameter 'p' here static inline unsigned long virt_to_pfn(const void *p) ^ 1 warning generated. -- >> mm/nommu.c:501:36: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion] struct page *page = virt_to_page(from); ^~~~ arch/arm/include/asm/memory.h:441:53: note: expanded from macro 'virt_to_page' #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) ^~~~~ include/asm-generic/memory_model.h:18:41: note: expanded from macro '__pfn_to_page' #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) ^~~ arch/arm/include/asm/memory.h:322:53: note: passing argument to parameter 'p' here static inline unsigned long virt_to_pfn(const void *p) ^ 1 warning generated.
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |