Re: [PATCH v4 2/3] hwmon: (pmbus/adp1050): Add support for adp1051, adp1055 and ltp8800

From: kernel test robot
Date: Sat Jan 25 2025 - 07:44:13 EST


Hi Cedric,

kernel test robot noticed the following build warnings:

[auto build test WARNING on a76539b293677c5c163b9285b0cd8dd420d33989]

url: https://github.com/intel-lab-lkp/linux/commits/Cedric-Encarnacion/dt-bindings-hwmon-pmbus-adp1050-Add-adp1051-adp1055-and-ltp8800/20250124-233047
base: a76539b293677c5c163b9285b0cd8dd420d33989
patch link: https://lore.kernel.org/r/20250124151746.1130-3-cedricjustine.encarnacion%40analog.com
patch subject: [PATCH v4 2/3] hwmon: (pmbus/adp1050): Add support for adp1051, adp1055 and ltp8800
config: arm-randconfig-r133-20250125 (https://download.01.org/0day-ci/archive/20250125/202501252028.3VEwAFiG-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250125/202501252028.3VEwAFiG-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501252028.3VEwAFiG-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/pmbus/adp1050.c:74:14: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected struct pmbus_driver_info *info @@ got void const * @@
drivers/hwmon/pmbus/adp1050.c:74:14: sparse: expected struct pmbus_driver_info *info
drivers/hwmon/pmbus/adp1050.c:74:14: sparse: got void const *

vim +74 drivers/hwmon/pmbus/adp1050.c

69
70 static int adp1050_probe(struct i2c_client *client)
71 {
72 struct pmbus_driver_info *info;
73
> 74 info = i2c_get_match_data(client);
75 if (!info)
76 return -ENODEV;
77
78 return pmbus_do_probe(client, info);
79 }
80

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki