* [linux-next:master 11178/13542] drivers/irqchip/irq-loongson-pch-lpc.c:164:41: error: invalid use of undefined type 'struct acpi_madt_lpc_pic'
@ 2022-07-31 9:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-31 9:12 UTC (permalink / raw)
To: Huacai Chen
Cc: kbuild-all, Linux Memory Management List, Marc Zyngier, Jianmin Lv
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
commit: ee73f14ee9eb7e1a04051b303b56130c4dd6e048 [11178/13542] irqchip: Add Loongson PCH LPC controller support
config: loongarch-randconfig-s041-20220731 (https://download.01.org/0day-ci/archive/20220731/202207311732.ovnvUbo2-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/next/linux-next.git/commit/?id=ee73f14ee9eb7e1a04051b303b56130c4dd6e048
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ee73f14ee9eb7e1a04051b303b56130c4dd6e048
# 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 drivers/irqchip/ kernel/entry/ kernel/trace/
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 include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/loongarch/include/asm/hardirq.h:10,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from drivers/irqchip/irq-loongson-pch-lpc.c:10:
drivers/irqchip/irq-loongson-pch-lpc.c: In function 'pch_lpc_acpi_init':
>> drivers/irqchip/irq-loongson-pch-lpc.c:164:41: error: invalid use of undefined type 'struct acpi_madt_lpc_pic'
164 | priv->base = ioremap(acpi_pchlpc->address, acpi_pchlpc->size);
| ^~
arch/loongarch/include/asm/io.h:70:23: note: in definition of macro 'ioremap'
70 | ioremap_prot((offset), (size), _CACHE_SUC)
| ^~~~~~
drivers/irqchip/irq-loongson-pch-lpc.c:164:63: error: invalid use of undefined type 'struct acpi_madt_lpc_pic'
164 | priv->base = ioremap(acpi_pchlpc->address, acpi_pchlpc->size);
| ^~
arch/loongarch/include/asm/io.h:70:33: note: in definition of macro 'ioremap'
70 | ioremap_prot((offset), (size), _CACHE_SUC)
| ^~~~
drivers/irqchip/irq-loongson-pch-lpc.c:188:38: error: invalid use of undefined type 'struct acpi_madt_lpc_pic'
188 | fwspec.param[0] = acpi_pchlpc->cascade + GSI_MIN_PCH_IRQ;
| ^~
vim +164 drivers/irqchip/irq-loongson-pch-lpc.c
149
150 int __init pch_lpc_acpi_init(struct irq_domain *parent,
151 struct acpi_madt_lpc_pic *acpi_pchlpc)
152 {
153 int parent_irq;
154 struct pch_lpc *priv;
155 struct irq_fwspec fwspec;
156 struct fwnode_handle *irq_handle;
157
158 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
159 if (!priv)
160 return -ENOMEM;
161
162 raw_spin_lock_init(&priv->lpc_lock);
163
> 164 priv->base = ioremap(acpi_pchlpc->address, acpi_pchlpc->size);
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-31 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-31 9:12 [linux-next:master 11178/13542] drivers/irqchip/irq-loongson-pch-lpc.c:164:41: error: invalid use of undefined type 'struct acpi_madt_lpc_pic' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox