Re: [PATCH v3 2/6] iio: adc: ad4030: add driver for ad4030-24

From: kernel test robot
Date: Fri Jan 31 2025 - 00:41:33 EST


Hi Esteban,

kernel test robot noticed the following build warnings:

[auto build test WARNING on ffd294d346d185b70e28b1a28abe367bbfe53c04]

url: https://github.com/intel-lab-lkp/linux/commits/Esteban-Blanc/dt-bindings-iio-adc-add-ADI-ad4030-ad4630-and-ad4632/20250130-191153
base: ffd294d346d185b70e28b1a28abe367bbfe53c04
patch link: https://lore.kernel.org/r/20250130-eblanc-ad4630_v1-v3-2-052e8c2d897d%40baylibre.com
patch subject: [PATCH v3 2/6] iio: adc: ad4030: add driver for ad4030-24
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250131/202501311345.Oh77Bhyw-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501311345.Oh77Bhyw-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/202501311345.Oh77Bhyw-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/iio/adc/ad4030.c: In function 'ad4030_buffer_preenable':
>> drivers/iio/adc/ad4030.c:715:30: warning: unused variable 'st' [-Wunused-variable]
715 | struct ad4030_state *st = iio_priv(indio_dev);
| ^~


vim +/st +715 drivers/iio/adc/ad4030.c

712
713 static int ad4030_buffer_preenable(struct iio_dev *indio_dev)
714 {
> 715 struct ad4030_state *st = iio_priv(indio_dev);
716 int ret;
717
718 ret = ad4030_set_mode(indio_dev, *indio_dev->active_scan_mask);
719 if (ret)
720 return ret;
721
722 return 0;
723 }
724

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