drivers/pinctrl/pinctrl-rp1.c:343:39-40: WARNING: Use ARRAY_SIZE
kernel test robot <[email protected]> Sun, 26 Jul 2026 19:15:30 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ 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 <[email protected]> :::::: CC: Florian Fainelli <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki