[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208070241.PSOaN69Y-lkp@intel.com>
Date: Sun, 7 Aug 2022 02:47:10 +0800
From: kernel test robot <lkp@...el.com>
To: Huacai Chen <chenhuacai@...ngson.cn>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Marc Zyngier <maz@...nel.org>,
Jianmin Lv <lvjianmin@...ngson.cn>
Subject: drivers/irqchip/irq-loongson-pch-lpc.c:151:48: warning: 'struct
acpi_madt_lpc_pic' declared inside parameter list will not be visible
outside of this definition or declaration
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6614a3c3164a5df2b54abb0b3559f51041cf705b
commit: ee73f14ee9eb7e1a04051b303b56130c4dd6e048 irqchip: Add Loongson PCH LPC controller support
date: 2 weeks ago
config: mips-randconfig-r014-20220806 (https://download.01.org/0day-ci/archive/20220807/202208070241.PSOaN69Y-lkp@intel.com/config)
compiler: mips64el-linux-gcc (GCC) 12.1.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=ee73f14ee9eb7e1a04051b303b56130c4dd6e048
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus 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 W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/irqchip/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-loongson-pch-lpc.c:151:48: warning: 'struct acpi_madt_lpc_pic' declared inside parameter list will not be visible outside of this definition or declaration
151 | struct acpi_madt_lpc_pic *acpi_pchlpc)
| ^~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongson-pch-lpc.c:150:12: warning: no previous prototype for 'pch_lpc_acpi_init' [-Wmissing-prototypes]
150 | int __init pch_lpc_acpi_init(struct irq_domain *parent,
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/io.h:13,
from arch/mips/include/asm/mips-cps.h:11,
from arch/mips/include/asm/smp-ops.h:16,
from arch/mips/include/asm/smp.h:21,
from include/linux/smp.h:113,
from include/linux/percpu.h:7,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
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/mips/include/asm/io.h:180:23: note: in definition of macro 'ioremap'
180 | ioremap_prot((offset), (size), _CACHE_UNCACHED)
| ^~~~~~
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/mips/include/asm/io.h:180:33: note: in definition of macro 'ioremap'
180 | ioremap_prot((offset), (size), _CACHE_UNCACHED)
| ^~~~
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;
| ^~
drivers/irqchip/irq-loongson-pch-lpc.c:188:50: error: 'GSI_MIN_PCH_IRQ' undeclared (first use in this function)
188 | fwspec.param[0] = acpi_pchlpc->cascade + GSI_MIN_PCH_IRQ;
| ^~~~~~~~~~~~~~~
drivers/irqchip/irq-loongson-pch-lpc.c:188:50: note: each undeclared identifier is reported only once for each function it appears in
vim +151 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)
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists