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

From: kernel test robot
Date: Sat Jan 25 2025 - 00:56:36 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-001-20250125 (https://download.01.org/0day-ci/archive/20250125/202501251333.fnJxNGFC-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250125/202501251333.fnJxNGFC-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/202501251333.fnJxNGFC-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/hwmon/pmbus/adp1050.c: In function 'adp1050_probe':
>> drivers/hwmon/pmbus/adp1050.c:74:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
74 | info = i2c_get_match_data(client);
| ^


vim +/const +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