Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [groeck-staging:hwmon-next 18/32] drivers/hwmon/hwmon.c:344:13: error: redefinition of 'is_hwmon_device'
@ 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: llvm, 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-kexec (https://download.01.org/0day-ci/archive/20260831/202608310650.HNAE53Na-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608310650.HNAE53Na-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/202608310650.HNAE53Na-lkp@intel.com/

All errors (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 is here
     321 | static bool is_hwmon_device(struct device *dev)
         |             ^
   1 error generated.


vim +/is_hwmon_device +344 drivers/hwmon/hwmon.c

   327	
   328	/*
   329	 * PEC support
   330	 *
   331	 * The 'pec' attribute is attached to I2C client devices. It is only provided
   332	 * if the i2c controller supports PEC.
   333	 *
   334	 * The mutex ensures that PEC configuration between i2c device and the hardware
   335	 * is consistent. Use a single mutex because attribute writes are supposed to be
   336	 * rare, and maintaining a separate mutex for each hardware monitoring device
   337	 * would add substantial complexity to the driver for little if any gain.
   338	 *
   339	 * The hardware monitoring device is identified as child of the i2c client
   340	 * device. This assumes that only a single hardware monitoring device is
   341	 * attached to an i2c client device.
   342	 */
   343	
 > 344	static bool is_hwmon_device(struct device *dev)
   345	{
   346		return is_hwmon_device(dev);
   347	}
   348	

--
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:344:13: error: redefinition of 'is_hwmon_device' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox