From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: drivers/irqchip/irq-bcm7038-l1.c:411:7-10: ERROR: iterator variable bound on line 408 cannot be NULL
Date: Thu, 04 Jun 2026 06:19:52 +0800 [thread overview]
Message-ID: <202606040634.oNltyWVH-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Johan Hovold <johan@kernel.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Florian Fainelli <florian.fainelli@broadcom.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ba3e43a9e601636f5edb54e259a74f96ca3b8fd8
commit: 1230fbb225abf3f04c64697c6b0f8dfb473b3790 irqchip: Enable compile testing of Broadcom drivers
date: 8 months ago
:::::: branch date: 28 hours ago
:::::: commit date: 8 months ago
config: loongarch-randconfig-r064-20260604 (https://download.01.org/0day-ci/archive/20260604/202606040634.oNltyWVH-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
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@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202606040634.oNltyWVH-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/irqchip/irq-bcm7038-l1.c:411:7-10: ERROR: iterator variable bound on line 408 cannot be NULL
vim +411 drivers/irqchip/irq-bcm7038-l1.c
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 396
1e3e330c07076a Johan Hovold 2025-10-13 397 static int bcm7038_l1_probe(struct platform_device *pdev, struct device_node *parent)
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 398 {
1e3e330c07076a Johan Hovold 2025-10-13 399 struct device_node *dn = pdev->dev.of_node;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 400 struct bcm7038_l1_chip *intc;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 401 int idx, ret;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 402
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 403 intc = kzalloc(sizeof(*intc), GFP_KERNEL);
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 404 if (!intc)
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 405 return -ENOMEM;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 406
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 407 raw_spin_lock_init(&intc->lock);
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 @408 for_each_possible_cpu(idx) {
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 409 ret = bcm7038_l1_init_one(dn, idx, intc);
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 410 if (ret < 0) {
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 @411 if (idx)
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 412 break;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 413 pr_err("failed to remap intc L1 registers\n");
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 414 goto out_free;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 415 }
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 416 }
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 417
affdc0d1bdfa54 Jiri Slaby (SUSE 2025-03-19 418) intc->domain = irq_domain_create_linear(of_fwnode_handle(dn), IRQS_PER_WORD * intc->n_words,
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 419 &bcm7038_l1_domain_ops,
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 420 intc);
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 421 if (!intc->domain) {
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 422 ret = -ENOMEM;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 423 goto out_unmap;
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 424 }
5f7f0317ed28b8 Kevin Cernekee 2014-12-25 425
:::::: The code at line 411 was first introduced by commit
:::::: 5f7f0317ed28b86bdae9baf65bb72d405b6f79ee IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers
:::::: TO: Kevin Cernekee <cernekee@gmail.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-06-03 22:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 22:19 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-10 21:25 drivers/irqchip/irq-bcm7038-l1.c:411:7-10: ERROR: iterator variable bound on line 408 cannot be NULL kernel test robot
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=202606040634.oNltyWVH-lkp@intel.com \
--to=lkp@intel.com \
--cc=julia.lawall@inria.fr \
--cc=oe-kbuild@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.