gpio-rockchip.c:undefined reference to `irq_gc_mask_set_bit'
From: kernel test robot
Date: Mon Nov 15 2021 - 21:28:04 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: 936ee2675eee1faca0dcdfa79165c7990422e0fc gpio/rockchip: add driver for rockchip gpio
date: 3 months ago
config: arm64-randconfig-r023-20211019 (attached as .config)
compiler: aarch64-linux-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=936ee2675eee1faca0dcdfa79165c7990422e0fc
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 936ee2675eee1faca0dcdfa79165c7990422e0fc
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 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 >>):
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: in function `rockchip_irq_disable':
>> gpio-rockchip.c:(.text+0x454): undefined reference to `irq_gc_mask_set_bit'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: in function `rockchip_irq_enable':
>> gpio-rockchip.c:(.text+0x478): undefined reference to `irq_gc_mask_clr_bit'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: in function `rockchip_interrupts_register':
>> gpio-rockchip.c:(.text+0x518): undefined reference to `irq_generic_chip_ops'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `irq_generic_chip_ops' which may bind externally can not be used when making a shared object; recompile with -fPIC
gpio-rockchip.c:(.text+0x518): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x528): undefined reference to `irq_generic_chip_ops'
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x594): undefined reference to `__irq_alloc_domain_generic_chips'
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x5cc): undefined reference to `irq_get_domain_generic_chip'
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x5e0): undefined reference to `irq_gc_ack_set_bit'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `irq_gc_ack_set_bit' which may bind externally can not be used when making a shared object; recompile with -fPIC
gpio-rockchip.c:(.text+0x5e0): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x5e4): undefined reference to `irq_gc_mask_set_bit'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `irq_gc_mask_set_bit' which may bind externally can not be used when making a shared object; recompile with -fPIC
gpio-rockchip.c:(.text+0x5e4): dangerous relocation: unsupported relocation
aarch64-linux-ld: gpio-rockchip.c:(.text+0x5e8): undefined reference to `irq_gc_ack_set_bit'
aarch64-linux-ld: gpio-rockchip.c:(.text+0x5ec): undefined reference to `irq_gc_mask_set_bit'
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x5f0): undefined reference to `irq_gc_mask_clr_bit'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `irq_gc_mask_clr_bit' which may bind externally can not be used when making a shared object; recompile with -fPIC
gpio-rockchip.c:(.text+0x5f0): dangerous relocation: unsupported relocation
aarch64-linux-ld: gpio-rockchip.c:(.text+0x5f8): undefined reference to `irq_gc_mask_clr_bit'
>> aarch64-linux-ld: gpio-rockchip.c:(.text+0x604): undefined reference to `irq_gc_set_wake'
aarch64-linux-ld: drivers/gpio/gpio-rockchip.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `irq_gc_set_wake' which may bind externally can not be used when making a shared object; recompile with -fPIC
gpio-rockchip.c:(.text+0x604): dangerous relocation: unsupported relocation
aarch64-linux-ld: gpio-rockchip.c:(.text+0x60c): undefined reference to `irq_gc_set_wake'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip