[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210190357.CgXP6MLO-lkp@intel.com>
Date: Wed, 19 Oct 2022 03:08:04 +0800
From: kernel test robot <lkp@...el.com>
To: Dan Callaghan <dcallagh@...omium.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Tzung-Bi Shih <tzungbi@...nel.org>,
Sami Kyöstilä <skyostil@...omium.org>
Subject: [chrome-platform:for-kernelci 1/2]
drivers/platform/chrome/cros_hps_i2c.c:149:19: error: initialization of
'void (*)(struct i2c_client *)' from incompatible pointer type 'int
(*)(struct i2c_client *)'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-kernelci
head: c7e2618e12562ba6f9d230d8ed4257dfa94d2d9d
commit: 5f9952548d91263eaf70a2ca71f8897c2a638cf1 [1/2] platform/chrome: add a driver for HPS
config: mips-randconfig-r036-20221018
compiler: mips-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git/commit/?id=5f9952548d91263eaf70a2ca71f8897c2a638cf1
git remote add chrome-platform https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git
git fetch --no-tags chrome-platform for-kernelci
git checkout 5f9952548d91263eaf70a2ca71f8897c2a638cf1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/platform/chrome/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/platform/chrome/cros_hps_i2c.c:149:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
149 | .remove = hps_i2c_remove,
| ^~~~~~~~~~~~~~
drivers/platform/chrome/cros_hps_i2c.c:149:19: note: (near initialization for 'hps_i2c_driver.remove')
cc1: some warnings being treated as errors
vim +149 drivers/platform/chrome/cros_hps_i2c.c
146
147 static struct i2c_driver hps_i2c_driver = {
148 .probe_new = hps_i2c_probe,
> 149 .remove = hps_i2c_remove,
150 .id_table = hps_i2c_id,
151 .driver = {
152 .name = "cros-hps",
153 .pm = &hps_pm_ops,
154 .acpi_match_table = ACPI_PTR(hps_acpi_id),
155 },
156 };
157 module_i2c_driver(hps_i2c_driver);
158
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (141819 bytes)
Powered by blists - more mailing lists