Re: [PATCH v1 2/2] iio: light: Add support for APDS9306 Light Sensor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Subhajit,

kernel test robot noticed the following build errors:

[auto build test ERROR on 611da07b89fdd53f140d7b33013f255bf0ed8f34]

url:    https://github.com/intel-lab-lkp/linux/commits/Subhajit-Ghosh/dt-bindings-iio-light-Avago-APDS9306/20231026-223659
base:   611da07b89fdd53f140d7b33013f255bf0ed8f34
patch link:    https://lore.kernel.org/r/20231026143532.39660-3-subhajit.ghosh%40tweaklogic.com
patch subject: [PATCH v1 2/2] iio: light: Add support for APDS9306 Light Sensor
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231027/202310271158.rRHlxbrM-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231027/202310271158.rRHlxbrM-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/202310271158.rRHlxbrM-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/light/apds9306.c:1325:10: error: 'struct i2c_driver' has no member named 'probe_new'
    1325 |         .probe_new = apds9306_probe,
         |          ^~~~~~~~~
>> drivers/iio/light/apds9306.c:1325:22: error: initialization of 'const struct i2c_device_id *' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
    1325 |         .probe_new = apds9306_probe,
         |                      ^~~~~~~~~~~~~~
   drivers/iio/light/apds9306.c:1325:22: note: (near initialization for 'apds9306_driver.id_table')
   drivers/iio/light/apds9306.c:1326:21: warning: initialized field overwritten [-Woverride-init]
    1326 |         .id_table = apds9306_id,
         |                     ^~~~~~~~~~~
   drivers/iio/light/apds9306.c:1326:21: note: (near initialization for 'apds9306_driver.id_table')
   cc1: some warnings being treated as errors


vim +1325 drivers/iio/light/apds9306.c

  1317	
  1318	static struct i2c_driver apds9306_driver = {
  1319		.driver = {
  1320			.name = "apds9306",
  1321			.pm = pm_ptr(&apds9306_pm_ops),
  1322			.of_match_table = apds9306_of_match,
  1323			.probe_type = PROBE_PREFER_ASYNCHRONOUS,
  1324		},
> 1325		.probe_new = apds9306_probe,
  1326		.id_table = apds9306_id,
  1327	};
  1328	

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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux