Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v4 2/3] hwmon: (pmbus/adp1050): Add support for adp1051, adp1055 and ltp8800
       [not found] <20250124151746.1130-3-cedricjustine.encarnacion@analog.com>
@ 2025-01-25  4:44 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-25  4:44 UTC (permalink / raw)
  To: Cedric Encarnacion, devicetree, linux-kernel, linux-i2c,
	linux-doc, linux-hwmon
  Cc: llvm, oe-kbuild-all, Guenter Roeck, Jean Delvare, Jonathan Corbet,
	Delphine CC Chiu, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Radu Sabau, Uwe Kleine-König, Alexis Czezar Torreno,
	Cedric Encarnacion, Andy Shevchenko

Hi Cedric,

kernel test robot noticed the following build errors:

[auto build test ERROR 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-003-20250125 (https://download.01.org/0day-ci/archive/20250125/202501251226.f8RpjAfp-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250125/202501251226.f8RpjAfp-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/202501251226.f8RpjAfp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/adp1050.c:74:7: error: assigning to 'struct pmbus_driver_info *' from 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      74 |         info = i2c_get_match_data(client);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-25  4:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250124151746.1130-3-cedricjustine.encarnacion@analog.com>
2025-01-25  4:44 ` [PATCH v4 2/3] hwmon: (pmbus/adp1050): Add support for adp1051, adp1055 and ltp8800 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