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

From: kernel test robot
Date: Thu Sep 28 2023 - 19:30:22 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-rc3 next-20230928]
[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: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230929/202309290756.MgmIdaDl-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230929/202309290756.MgmIdaDl-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/202309290756.MgmIdaDl-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/adc/ad7173.c:829:23: warning: initialization of 'long unsigned int' from 'const struct ad7173_device_info *' makes integer from pointer without a cast [-Wint-conversion]
829 | { "ad7172-2", &ad7173_device_info[ID_AD7172_2], },
| ^
drivers/iio/adc/ad7173.c:829:23: note: (near initialization for 'ad7173_id_table[0].driver_data')
drivers/iio/adc/ad7173.c:830:23: warning: initialization of 'long unsigned int' from 'const struct ad7173_device_info *' makes integer from pointer without a cast [-Wint-conversion]
830 | { "ad7173-8", &ad7173_device_info[ID_AD7173_8], },
| ^
drivers/iio/adc/ad7173.c:830:23: note: (near initialization for 'ad7173_id_table[1].driver_data')
drivers/iio/adc/ad7173.c:831:23: warning: initialization of 'long unsigned int' from 'const struct ad7173_device_info *' makes integer from pointer without a cast [-Wint-conversion]
831 | { "ad7175-2", &ad7173_device_info[ID_AD7175_2], },
| ^
drivers/iio/adc/ad7173.c:831:23: note: (near initialization for 'ad7173_id_table[2].driver_data')
drivers/iio/adc/ad7173.c:832:23: warning: initialization of 'long unsigned int' from 'const struct ad7173_device_info *' makes integer from pointer without a cast [-Wint-conversion]
832 | { "ad7176-2", &ad7173_device_info[ID_AD7176_2], },
| ^
drivers/iio/adc/ad7173.c:832:23: note: (near initialization for 'ad7173_id_table[3].driver_data')


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