[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'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux