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/mailbox/bcm74110-mailbox.c:237:8-11: ERROR: invalid reference to the index variable of the iterator on line 224
Date: Fri, 14 Aug 2026 14:26:48 +0800 [thread overview]
Message-ID: <202608141433.DlAigdDS-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Justin Chen <justin.chen@broadcom.com>
CC: Jassi Brar <jassisinghbrar@gmail.com>
CC: Florian Fainelli <florian.fainelli@broadcom.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3d6d817622b0a9721e3cc404df3469171582be13
commit: 52436007b862a90348ac8efc3a89eaceb2234f53 mailbox: Add support for bcm74110
date: 1 year ago
:::::: branch date: 2 days ago
:::::: commit date: 1 year ago
config: powerpc-randconfig-r053-20260812 (https://download.01.org/0day-ci/archive/20260814/202608141433.DlAigdDS-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 12df34b8469b8095359de8c249cb1b2753fadeea)
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: 52436007b862 ("mailbox: Add support for bcm74110")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202608141433.DlAigdDS-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/mailbox/bcm74110-mailbox.c:237:8-11: ERROR: invalid reference to the index variable of the iterator on line 224
vim +237 drivers/mailbox/bcm74110-mailbox.c
52436007b862a9 Justin Chen 2025-06-02 215
52436007b862a9 Justin Chen 2025-06-02 216 static int bcm74110_rx_pop_init_msg(struct bcm74110_mbox *mbox, u32 func_type,
52436007b862a9 Justin Chen 2025-06-02 217 u32 *val)
52436007b862a9 Justin Chen 2025-06-02 218 {
52436007b862a9 Justin Chen 2025-06-02 219 struct bcm74110_mbox_msg *msg, *msg_tmp;
52436007b862a9 Justin Chen 2025-06-02 220 unsigned long flags;
52436007b862a9 Justin Chen 2025-06-02 221 bool found = false;
52436007b862a9 Justin Chen 2025-06-02 222
52436007b862a9 Justin Chen 2025-06-02 223 spin_lock_irqsave(&mbox->rx_svc_list_lock, flags);
52436007b862a9 Justin Chen 2025-06-02 @224 list_for_each_entry_safe(msg, msg_tmp, &mbox->rx_svc_init_list,
52436007b862a9 Justin Chen 2025-06-02 225 list_entry) {
52436007b862a9 Justin Chen 2025-06-02 226 if (BCM_MSG_GET_FIELD(msg->msg, FUNC) == func_type) {
52436007b862a9 Justin Chen 2025-06-02 227 list_del(&msg->list_entry);
52436007b862a9 Justin Chen 2025-06-02 228 found = true;
52436007b862a9 Justin Chen 2025-06-02 229 break;
52436007b862a9 Justin Chen 2025-06-02 230 }
52436007b862a9 Justin Chen 2025-06-02 231 }
52436007b862a9 Justin Chen 2025-06-02 232 spin_unlock_irqrestore(&mbox->rx_svc_list_lock, flags);
52436007b862a9 Justin Chen 2025-06-02 233
52436007b862a9 Justin Chen 2025-06-02 234 if (!found)
52436007b862a9 Justin Chen 2025-06-02 235 return -EINVAL;
52436007b862a9 Justin Chen 2025-06-02 236
52436007b862a9 Justin Chen 2025-06-02 @237 *val = msg->msg;
52436007b862a9 Justin Chen 2025-06-02 238 kfree(msg);
52436007b862a9 Justin Chen 2025-06-02 239
52436007b862a9 Justin Chen 2025-06-02 240 return 0;
52436007b862a9 Justin Chen 2025-06-02 241 }
52436007b862a9 Justin Chen 2025-06-02 242
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-14 6:27 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=202608141433.DlAigdDS-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.