* [groeck-staging:hwmon-next 18/32] drivers/hwmon/hwmon.c:321:13: warning: 'is_hwmon_device' defined but not used
@ 2026-08-31 4:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-31 4:22 UTC (permalink / raw)
To: Guenter Roeck; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: 6d28113b5ea75542b72d9f73ab9aaf0d0a49a104
commit: 40b20f8e6b53ea701f250fe2d3cac82e07c18468 [18/32] hwmon: Ensure that 'dev' passed to hwmon_notify_event() is a hwmon device
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260831/202608310633.tZeEG9Yn-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608310633.tZeEG9Yn-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608310633.tZeEG9Yn-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/hwmon/hwmon.c:344:13: error: redefinition of 'is_hwmon_device'
344 | static bool is_hwmon_device(struct device *dev)
| ^~~~~~~~~~~~~~~
drivers/hwmon/hwmon.c:321:13: note: previous definition of 'is_hwmon_device' with type 'bool(struct device *)' {aka '_Bool(struct device *)'}
321 | static bool is_hwmon_device(struct device *dev)
| ^~~~~~~~~~~~~~~
>> drivers/hwmon/hwmon.c:321:13: warning: 'is_hwmon_device' defined but not used [-Wunused-function]
vim +/is_hwmon_device +321 drivers/hwmon/hwmon.c
61b8ab2c5481dc4 Nicolin Chen 2018-10-09 320
a40a97b27cd6bd8 Guenter Roeck 2026-08-20 @321 static bool is_hwmon_device(struct device *dev)
a40a97b27cd6bd8 Guenter Roeck 2026-08-20 322 {
a40a97b27cd6bd8 Guenter Roeck 2026-08-20 323 return dev->class == &hwmon_class;
a40a97b27cd6bd8 Guenter Roeck 2026-08-20 324 }
a40a97b27cd6bd8 Guenter Roeck 2026-08-20 325
:::::: The code at line 321 was first introduced by commit
:::::: a40a97b27cd6bd8465937439418964468f784bc4 hwmon: Ensure that 'dev' passed to hwmon_notify_event() is a hwmon device
:::::: TO: Guenter Roeck <linux@roeck-us.net>
:::::: CC: Guenter Roeck <linux@roeck-us.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-31 4:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 4:22 [groeck-staging:hwmon-next 18/32] drivers/hwmon/hwmon.c:321:13: warning: 'is_hwmon_device' defined but not used kernel test robot
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.