Re: [PATCH 3/7] iio: adc: ad7091r: Move defines to header file

From: kernel test robot
Date: Wed Nov 22 2023 - 07:43:03 EST


Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on linus/master v6.7-rc2 next-20231122]
[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/marcelo-schmitt-analog-com/MAINTAINERS-Add-MAINTAINERS-entry-for-AD7091R/20231122-093706
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/8aa859817e86408733a81cf31b932f0efa273c71.1700595310.git.marcelo.schmitt1%40gmail.com
patch subject: [PATCH 3/7] iio: adc: ad7091r: Move defines to header file
config: powerpc-randconfig-r071-20231122 (https://download.01.org/0day-ci/archive/20231122/202311221730.lHHfx8Ft-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231122/202311221730.lHHfx8Ft-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/202311221730.lHHfx8Ft-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/iio/adc/ad7091r-base.c:16:
>> drivers/iio/adc/ad7091r-base.h:41:36: warning: 'ad7091r_events' defined but not used [-Wunused-const-variable=]
41 | static const struct iio_event_spec ad7091r_events[] = {
| ^~~~~~~~~~~~~~


vim +/ad7091r_events +41 drivers/iio/adc/ad7091r-base.h

40
> 41 static const struct iio_event_spec ad7091r_events[] = {
42 {
43 .type = IIO_EV_TYPE_THRESH,
44 .dir = IIO_EV_DIR_RISING,
45 .mask_separate = BIT(IIO_EV_INFO_VALUE) |
46 BIT(IIO_EV_INFO_ENABLE),
47 },
48 {
49 .type = IIO_EV_TYPE_THRESH,
50 .dir = IIO_EV_DIR_FALLING,
51 .mask_separate = BIT(IIO_EV_INFO_VALUE) |
52 BIT(IIO_EV_INFO_ENABLE),
53 },
54 {
55 .type = IIO_EV_TYPE_THRESH,
56 .dir = IIO_EV_DIR_EITHER,
57 .mask_separate = BIT(IIO_EV_INFO_HYSTERESIS),
58 },
59 };
60

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