Skip to contentSkip to conversation

drivers/hwmon/pmbus/tps546d24.c:50:34: warning: 'tps546d24_of_match' defined but not used

PATCH Guenter Roeck 1 participant 1 message Sep 25, 2022 1 message not in the archive Hardware monitoring

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Guenter Roeck

author maintainer
#1 lore raw
Quoted 14 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head:   cbc6a25e35c03c8185549669c94103c70e44932e
commit: 009aeddecef3fd3514171af0d53b6ee8606f9c94 [45/81] hwmon: (pmbus) Add driver for the TEXAS TPS546D24 Buck Converter.
config: i386-randconfig-r036-20220926
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
         # https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=009aeddecef3fd3514171af0d53b6ee8606f9c94
         git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
         git fetch --no-tags groeck-staging hwmon-next
         git checkout 009aeddecef3fd3514171af0d53b6ee8606f9c94
         # save the config file
         mkdir build_dir && cp config build_dir/.config
         make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hwmon/pmbus/
Quoted 10 lines

If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/hwmon/pmbus/tps546d24.c:50:34: warning: 'tps546d24_of_match' defined but not used [-Wunused-const-variable=]

       50 | static const struct of_device_id tps546d24_of_match[] = {
          |                                  ^~~~~~~~~~~~~~~~~~

Fixed in hwmon-next.

Thanks,
Guenter

Quoted 10 lines

vim +/tps546d24_of_match +50 drivers/hwmon/pmbus/tps546d24.c

     49	
Quoted 1 line

50 static const struct of_device_id tps546d24_of_match[] = {

     51		{.compatible = "ti,tps546d24"},
     52		{}
     53	};
     54	MODULE_DEVICE_TABLE(of, tps546d24_of_match);
     55