[ammarfaizi2-block:robh/linux/dt/pop-pci-nodes 2/2] arm-linux-gnueabi-ld: drivers/pci/of.c:97: undefined reference to `of_attach_node'

From: kernel test robot
Date: Wed Apr 06 2022 - 05:58:31 EST


tree: https://github.com/ammarfaizi2/linux-block robh/linux/dt/pop-pci-nodes
head: b9198a9525a97d05b0bb2a7282fede92d7d2d93d
commit: b9198a9525a97d05b0bb2a7282fede92d7d2d93d [2/2] PCI: Create DT nodes if they don't exist
config: arm-buildonly-randconfig-r003-20220405 (https://download.01.org/0day-ci/archive/20220406/202204061402.HV1VNYZe-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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://github.com/ammarfaizi2/linux-block/commit/b9198a9525a97d05b0bb2a7282fede92d7d2d93d
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block robh/linux/dt/pop-pci-nodes
git checkout b9198a9525a97d05b0bb2a7282fede92d7d2d93d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

kernel/softirq.o: in function `cpuhp_setup_state_nocalls':
include/linux/cpuhotplug.h:324:(.init.text+0x28): relocation truncated to fit: R_ARM_PC24 against symbol `__cpuhp_setup_state' defined in .text section in kernel/cpu.o
kernel/softirq.o: in function `spawn_ksoftirqd':
kernel/softirq.c:970:(.init.text+0x30): relocation truncated to fit: R_ARM_PC24 against symbol `smpboot_register_percpu_thread' defined in .text section in kernel/smpboot.o
kernel/softirq.o: in function `_sub_I_65535_1':
softirq.c:(.text.startup+0x14): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_register_globals' defined in .text section in mm/kasan/generic.o
init/main.o: in function `debug_kernel':
init/main.c:236:(.init.text+0x60): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_store4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.o: in function `quiet_kernel':
init/main.c:242:(.init.text+0xb8): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_store4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.o: in function `init_setup':
init/main.c:586:(.init.text+0x134): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_store4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.o: in function `rdinit_setup':
init/main.c:598:(.init.text+0x1a4): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_store4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.o: in function `do_early_param':
init/main.c:736:(.init.text+0x268): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_load4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.c:736:(.init.text+0x2c0): relocation truncated to fit: R_ARM_PC24 against symbol `__asan_report_load4_noabort' defined in .text section in mm/kasan/report_generic.o
init/main.c:736:(.init.text+0x2cc): relocation truncated to fit: R_ARM_PC24 against symbol `parameq' defined in .text section in kernel/params.o
init/main.c:740:(.init.text+0x308): additional relocation overflows omitted from the output
arm-linux-gnueabi-ld: drivers/pci/of.o: in function `make_dev_node':
drivers/pci/of.c:84: undefined reference to `of_attach_node'
arm-linux-gnueabi-ld: drivers/pci/of.o: in function `make_bus_node':
drivers/pci/of.c:97: undefined reference to `of_attach_node'
>> arm-linux-gnueabi-ld: drivers/pci/of.c:97: undefined reference to `of_attach_node'
pahole: .tmp_vmlinux.btf: No such file or directory
.btf.vmlinux.bin.o: file not recognized: file format not recognized

--
0-DAY CI Kernel Test Service
https://01.org/lkp