Re: [PATCH v2 2/2] iio: adc: ad7173: add AD7173 driver

From: kernel test robot
Date: Wed Oct 04 2023 - 18:03:43 EST


Hi Dumitru,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on linus/master v6.6-rc4 next-20231004]
[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
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Dumitru-Ceclan/iio-adc-ad7173-add-AD7173-driver/20230928-205802
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20230928125443.615006-2-mitrutzceclan%40gmail.com
patch subject: [PATCH v2 2/2] iio: adc: ad7173: add AD7173 driver
config: i386-randconfig-063-20231005 (https://download.01.org/0day-ci/archive/20231005/202310050520.VEIzHNiM-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231005/202310050520.VEIzHNiM-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/202310050520.VEIzHNiM-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/iio/adc/ad7173.c:829:42: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long [usertype] driver_data @@ got struct ad7173_device_info const * @@
drivers/iio/adc/ad7173.c:829:42: sparse: expected unsigned long [usertype] driver_data
drivers/iio/adc/ad7173.c:829:42: sparse: got struct ad7173_device_info const *
drivers/iio/adc/ad7173.c:830:42: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long [usertype] driver_data @@ got struct ad7173_device_info const * @@
drivers/iio/adc/ad7173.c:830:42: sparse: expected unsigned long [usertype] driver_data
drivers/iio/adc/ad7173.c:830:42: sparse: got struct ad7173_device_info const *
drivers/iio/adc/ad7173.c:831:42: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long [usertype] driver_data @@ got struct ad7173_device_info const * @@
drivers/iio/adc/ad7173.c:831:42: sparse: expected unsigned long [usertype] driver_data
drivers/iio/adc/ad7173.c:831:42: sparse: got struct ad7173_device_info const *
drivers/iio/adc/ad7173.c:832:42: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long [usertype] driver_data @@ got struct ad7173_device_info const * @@
drivers/iio/adc/ad7173.c:832:42: sparse: expected unsigned long [usertype] driver_data
drivers/iio/adc/ad7173.c:832:42: sparse: got struct ad7173_device_info const *

vim +829 drivers/iio/adc/ad7173.c

827
828 static const struct spi_device_id ad7173_id_table[] = {
> 829 { "ad7172-2", &ad7173_device_info[ID_AD7172_2], },
830 { "ad7173-8", &ad7173_device_info[ID_AD7173_8], },
831 { "ad7175-2", &ad7173_device_info[ID_AD7175_2], },
832 { "ad7176-2", &ad7173_device_info[ID_AD7176_2], },
833 { },
834 };
835 MODULE_DEVICE_TABLE(spi, ad7173_id_table);
836

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