Re: [PATCH] hwmon: mp2891: add MP2891 driver

From: kernel test robot
Date: Fri May 26 2023 - 09:04:39 EST

Hi Noah,

kernel test robot noticed the following build errors:

[auto build test ERROR on groeck-staging/hwmon-next]
[also build test ERROR on linus/master v6.4-rc3 next-20230525]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: hwmon-next
patch link:
patch subject: [PATCH] hwmon: mp2891: add MP2891 driver
config: mips-allyesconfig (
compiler: mips-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add linux-review
git fetch --no-tags linux-review Noah-Wang/hwmon-mp2891-add-MP2891-driver/20230526-174424
git checkout be1255480e7afc1fd35bf23c635e7fb98a9c0299
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes:

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/mp2891.c:362:18: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)' [-Werror=incompatible-pointer-types]
362 | .probe = mp2891_probe,
| ^~~~~~~~~~~~
drivers/hwmon/pmbus/mp2891.c:362:18: note: (near initialization for 'mp2891_driver.<anonymous>.probe')
cc1: some warnings being treated as errors

vim +362 drivers/hwmon/pmbus/mp2891.c

357 static struct i2c_driver mp2891_driver = {
358 .driver = {
359 .name = "mp2891",
360 .of_match_table = mp2891_of_match,
361 },
> 362 .probe = mp2891_probe,
363 .id_table = mp2891_id,
364 };

0-DAY CI Kernel Test Service