drivers/pinctrl/qcom/pinctrl-ipq5018.c:244:27: warning: '_groups' defined but not used

From: kernel test robot
Date: Tue Jul 25 2023 - 21:29:27 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 18b44bc5a67275641fb26f2c54ba7eef80ac5950
commit: 405ac045ec730d10e5901d653088b9d67bfaaa80 pinctrl: qcom: allow true compile testing
date: 7 weeks ago
config: i386-buildonly-randconfig-r004-20230726 (https://download.01.org/0day-ci/archive/20230726/202307260914.AMUMoZ8S-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230726/202307260914.AMUMoZ8S-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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307260914.AMUMoZ8S-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/qcom/pinctrl-ipq5018.c:244:27: warning: '_groups' defined but not used [-Wunused-const-variable=]
244 | static const char * const _groups[] = {
| ^~~~~~~


vim +/_groups +244 drivers/pinctrl/qcom/pinctrl-ipq5018.c

725d1c8916583f Sricharan Ramabadhran 2023-06-08 243
725d1c8916583f Sricharan Ramabadhran 2023-06-08 @244 static const char * const _groups[] = {
725d1c8916583f Sricharan Ramabadhran 2023-06-08 245 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 246 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 247 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 248 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 249 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 250 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 251 "gpio43", "gpio44", "gpio45", "gpio46",
725d1c8916583f Sricharan Ramabadhran 2023-06-08 252 };
725d1c8916583f Sricharan Ramabadhran 2023-06-08 253

:::::: The code at line 244 was first introduced by commit
:::::: 725d1c8916583f9c09e5f05e5a55dd47fdca61c1 pinctrl: qcom: Add IPQ5018 pinctrl driver

:::::: TO: Sricharan Ramabadhran <quic_srichara@xxxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki