drivers/irqchip/irq-brcmstb-l2.c:273:1: sparse: sparse: Initializer entry defined twice
From: kernel test robot
Date: Thu Dec 03 2026 - 06:36:14 EST
Hi Johan,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 1230fbb225abf3f04c64697c6b0f8dfb473b3790 irqchip: Enable compile testing of Broadcom drivers
date: 1 year, 2 months ago
config: parisc-randconfig-r2307-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203123403.ttOSkeT5-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 9.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203123403.ttOSkeT5-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 1230fbb225ab ("irqchip: Enable compile testing of Broadcom drivers")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203123403.ttOSkeT5-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
drivers/irqchip/irq-brcmstb-l2.c:95:13: sparse: sparse: context imbalance in '__brcmstb_l2_intc_suspend' - wrong count at exit
drivers/irqchip/irq-brcmstb-l2.c:123:13: sparse: sparse: context imbalance in 'brcmstb_l2_intc_resume' - wrong count at exit
>> drivers/irqchip/irq-brcmstb-l2.c:273:1: sparse: sparse: Initializer entry defined twice
drivers/irqchip/irq-brcmstb-l2.c:274:1: sparse: also defined here
--
>> drivers/irqchip/irq-bcm7038-l1.c:457:1: sparse: sparse: Initializer entry defined twice
drivers/irqchip/irq-bcm7038-l1.c:458:1: sparse: also defined here
--
drivers/irqchip/irq-bcm7120-l2.c:187:38: sparse: sparse: cast removes address space '__iomem' of expression
drivers/irqchip/irq-bcm7120-l2.c:187:38: sparse: sparse: cast removes address space '__iomem' of expression
drivers/irqchip/irq-bcm7120-l2.c:187:38: sparse: sparse: cast removes address space '__iomem' of expression
drivers/irqchip/irq-bcm7120-l2.c:187:38: sparse: sparse: cast removes address space '__iomem' of expression
drivers/irqchip/irq-bcm7120-l2.c:64:9: sparse: sparse: context imbalance in 'bcm7120_l2_intc_irq_handle' - different lock contexts for basic block
drivers/irqchip/irq-bcm7120-l2.c:83:13: sparse: sparse: context imbalance in 'bcm7120_l2_intc_suspend' - wrong count at exit
drivers/irqchip/irq-bcm7120-l2.c:93:13: sparse: sparse: context imbalance in 'bcm7120_l2_intc_resume' - wrong count at exit
>> drivers/irqchip/irq-bcm7120-l2.c:345:1: sparse: sparse: Initializer entry defined twice
drivers/irqchip/irq-bcm7120-l2.c:346:1: sparse: also defined here
vim +273 drivers/irqchip/irq-brcmstb-l2.c
51d9db5c8fbbed Florian Fainelli 2021-10-20 268
51d9db5c8fbbed Florian Fainelli 2021-10-20 269 IRQCHIP_PLATFORM_DRIVER_BEGIN(brcmstb_l2)
1e3e330c07076a Johan Hovold 2025-10-13 270 IRQCHIP_MATCH("brcm,l2-intc", brcmstb_l2_edge_intc_probe)
1e3e330c07076a Johan Hovold 2025-10-13 271 IRQCHIP_MATCH("brcm,hif-spi-l2-intc", brcmstb_l2_edge_intc_probe)
1e3e330c07076a Johan Hovold 2025-10-13 272 IRQCHIP_MATCH("brcm,upg-aux-aon-l2-intc", brcmstb_l2_edge_intc_probe)
1e3e330c07076a Johan Hovold 2025-10-13 @273 IRQCHIP_MATCH("brcm,bcm7271-l2-intc", brcmstb_l2_lvl_intc_probe)
:::::: The code at line 273 was first introduced by commit
:::::: 1e3e330c07076a0582385bbea029c9cc918fa30d irqchip: Pass platform device to platform drivers
:::::: TO: Johan Hovold <johan@xxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki