* [groeck-staging:testing 15/26] drivers/hwmon/hwmon.c:400:14: error: implicit declaration of function 'i2c_check_functionality'
@ 2024-05-30 19:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-30 19:07 UTC (permalink / raw)
To: Guenter Roeck; +Cc: oe-kbuild-all, linux-hwmon
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git testing
head: 9068c716a2fe05d33b869804c6c9a5b7a6561a8b
commit: 6e3608a4eb2b4aab2f4a22167ea141dc7efd2712 [15/26] hwmon: Add PEC attribute support to hardware monitoring core
config: sparc-defconfig (https://download.01.org/0day-ci/archive/20240531/202405310233.vhe3KdmZ-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240531/202405310233.vhe3KdmZ-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/202405310233.vhe3KdmZ-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/hwmon/hwmon.c: In function 'hwmon_pec_register':
>> drivers/hwmon/hwmon.c:400:14: error: implicit declaration of function 'i2c_check_functionality' [-Werror=implicit-function-declaration]
400 | !i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_PEC))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/i2c_check_functionality +400 drivers/hwmon/hwmon.c
393
394 static int hwmon_pec_register(struct device *hdev)
395 {
396 struct i2c_client *client = i2c_verify_client(hdev->parent);
397 int err;
398
399 if (!client ||
> 400 !i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_PEC))
401 return 0;
402
403 err = device_create_file(&client->dev, &dev_attr_pec);
404 if (err)
405 return err;
406
407 return devm_add_action_or_reset(hdev, hwmon_remove_pec, &client->dev);
408 }
409
--
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:[~2024-05-30 19:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30 19:07 [groeck-staging:testing 15/26] drivers/hwmon/hwmon.c:400:14: error: implicit declaration of function 'i2c_check_functionality' 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