From: kernel test robot <lkp@intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [groeck-staging:hwmon-next 18/32] drivers/hwmon/hwmon.c:321:13: warning: 'is_hwmon_device' defined but not used
Date: Mon, 31 Aug 2026 06:22:10 +0200 [thread overview]
Message-ID: <202608310633.tZeEG9Yn-lkp@intel.com> (raw)
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
reply other threads:[~2026-08-31 4:22 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=202608310633.tZeEG9Yn-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux@roeck-us.net \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.