lkml.org 
[lkml]   [2022]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/irqchip/irq-loongarch-cpu.c:35: undefined reference to `liointc_handle'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9de1f9c8ca5100a02a2e271bdbde36202e251b4b
commit: e8bba72b396cef7c919c73710f3c5884521adb4e irqchip / ACPI: Introduce ACPI_IRQ_MODEL_LPIC for LoongArch
date: 13 days ago
config: loongarch-randconfig-s053-20220801 (https://download.01.org/0day-ci/archive/20220802/202208022031.9hRlPwUl-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e8bba72b396cef7c919c73710f3c5884521adb4e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e8bba72b396cef7c919c73710f3c5884521adb4e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash

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 >>):

loongarch64-linux-ld: drivers/irqchip/irq-loongarch-cpu.o: in function `lpic_get_gsi_domain_id':
>> drivers/irqchip/irq-loongarch-cpu.c:35: undefined reference to `liointc_handle'
>> loongarch64-linux-ld: drivers/irqchip/irq-loongarch-cpu.c:35: undefined reference to `liointc_handle'
>> loongarch64-linux-ld: drivers/irqchip/irq-loongarch-cpu.c:35: undefined reference to `liointc_handle'
loongarch64-linux-ld: drivers/irqchip/irq-loongarch-cpu.o: in function `liointc_parse_madt':
drivers/irqchip/irq-loongarch-cpu.c:101: undefined reference to `liointc_acpi_init'


vim +35 drivers/irqchip/irq-loongarch-cpu.c

27
28 static struct fwnode_handle *lpic_get_gsi_domain_id(u32 gsi)
29 {
30 int id;
31 struct fwnode_handle *domain_handle = NULL;
32
33 switch (gsi) {
34 case GSI_MIN_CPU_IRQ ... GSI_MAX_CPU_IRQ:
> 35 if (liointc_handle)
36 domain_handle = liointc_handle;
37 break;
38
39 case GSI_MIN_LPC_IRQ ... GSI_MAX_LPC_IRQ:
40 if (pch_lpc_handle)
41 domain_handle = pch_lpc_handle;
42 break;
43
44 case GSI_MIN_PCH_IRQ ... GSI_MAX_PCH_IRQ:
45 id = find_pch_pic(gsi);
46 if (id >= 0 && pch_pic_handle[id])
47 domain_handle = pch_pic_handle[id];
48 break;
49 }
50
51 return domain_handle;
52 }
53

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

\
 
 \ /
  Last update: 2022-08-02 14:21    [W:0.055 / U:1.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site