linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2957/3461] drivers/hwmon/hwmon.c:398:undefined reference to `i2c_verify_client'
@ 2024-06-04  1:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-04  1:29 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: oe-kbuild-all, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   861a3cb5a2a8480d361fa6708da24747d6fa72fe
commit: 029e008808aa1af87f59e056bcc9ad26bcd30483 [2957/3461] hwmon: Add PEC attribute support to hardware monitoring core
config: powerpc-buildonly-randconfig-r006-20220717 (https://download.01.org/0day-ci/archive/20240604/202406040901.7u7OsEtF-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240604/202406040901.7u7OsEtF-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/202406040901.7u7OsEtF-lkp@intel.com/

All errors (new ones prefixed by >>):

   powerpc-linux-ld: drivers/hwmon/hwmon.o: in function `hwmon_pec_register':
>> drivers/hwmon/hwmon.c:398:(.text+0x2404): undefined reference to `i2c_verify_client'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for HWMON
   Depends on [m]: HAS_IOMEM [=y] && (I2C [=m] || I2C [=m]=n)
   Selected by [y]:
   - NTB_IDT [=y] && NTB [=y] && PCI [=y]


vim +398 drivers/hwmon/hwmon.c

   395	
   396	static int hwmon_pec_register(struct device *hdev)
   397	{
 > 398		struct i2c_client *client = i2c_verify_client(hdev->parent);
   399		int err;
   400	
   401		if (!client)
   402			return -EINVAL;
   403	
   404		if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_PEC))
   405			return 0;
   406	
   407		err = device_create_file(&client->dev, &dev_attr_pec);
   408		if (err)
   409			return err;
   410	
   411		return devm_add_action_or_reset(hdev, hwmon_remove_pec, &client->dev);
   412	}
   413	

-- 
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-06-04  1:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04  1:29 [linux-next:master 2957/3461] drivers/hwmon/hwmon.c:398:undefined reference to `i2c_verify_client' 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