From: kernel test robot <lkp@intel.com>
To: Huacai Chen <chenhuacai@loongson.cn>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Marc Zyngier <maz@kernel.org>, Jianmin Lv <lvjianmin@loongson.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
Date: Sun, 7 Aug 2022 02:47:10 +0800 [thread overview]
Message-ID: <202208070241.PSOaN69Y-lkp@intel.com> (raw)
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@intel.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
reply other threads:[~2022-08-06 18:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202208070241.PSOaN69Y-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhuacai@loongson.cn \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lvjianmin@loongson.cn \
--cc=maz@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox