From: kernel test robot <lkp@intel.com>
To: Andrea della Porta <andrea.porta@suse.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Florian Fainelli <florian.fainelli@broadcom.com>,
Rob Herring <robh@kernel.org>
Subject: drivers/pinctrl/pinctrl-rp1.c:343:39-40: WARNING: Use ARRAY_SIZE
Date: Sun, 26 Jul 2026 19:15:30 +0800 [thread overview]
Message-ID: <202607261949.XhxCx28Z-lkp@intel.com> (raw)
Hi Andrea,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0ce37745d4bfbc493f718169c3974898ffec8ee7
commit: ce26f588c8310e0fdd1bc7524a86fdf0ef6b1c85 misc: rp1: drop overlay support
date: 7 months ago
config: powerpc-randconfig-r051-20260726 (https://download.01.org/0day-ci/archive/20260726/202607261949.XhxCx28Z-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 16.1.0
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: ce26f588c831 ("misc: rp1: drop overlay support")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607261949.XhxCx28Z-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/pinctrl/pinctrl-rp1.c:343:39-40: WARNING: Use ARRAY_SIZE
drivers/pinctrl/pinctrl-rp1.c:444:33-34: WARNING: Use ARRAY_SIZE
vim +343 drivers/pinctrl/pinctrl-rp1.c
e3ce7b897388339 Andrea della Porta 2025-06-24 339
e3ce7b897388339 Andrea della Porta 2025-06-24 340 #define PIN_ARRAY(...) \
e3ce7b897388339 Andrea della Porta 2025-06-24 341 (const unsigned int []) {__VA_ARGS__}
e3ce7b897388339 Andrea della Porta 2025-06-24 342 #define PIN_ARRAY_SIZE(...) \
e3ce7b897388339 Andrea della Porta 2025-06-24 @343 (sizeof((unsigned int[]) {__VA_ARGS__}) / sizeof(unsigned int))
e3ce7b897388339 Andrea della Porta 2025-06-24 344 #define RP1_GROUP(name, ...) \
e3ce7b897388339 Andrea della Porta 2025-06-24 345 PINCTRL_PINGROUP(#name, PIN_ARRAY(__VA_ARGS__), \
e3ce7b897388339 Andrea della Porta 2025-06-24 346 PIN_ARRAY_SIZE(__VA_ARGS__))
e3ce7b897388339 Andrea della Porta 2025-06-24 347
:::::: The code at line 343 was first introduced by commit
:::::: e3ce7b897388339b407d57969acaa26063e38209 pinctrl: rp1: Implement RaspberryPi RP1 pinmux/pinconf support
:::::: TO: Andrea della Porta <andrea.porta@suse.com>
:::::: CC: Florian Fainelli <florian.fainelli@broadcom.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-26 11:16 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=202607261949.XhxCx28Z-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrea.porta@suse.com \
--cc=florian.fainelli@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@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
all inboxes | Powered by JetHome®