Re: [PATCH v2 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 warnings:

[auto build test WARNING on 611da07b89fdd53f140d7b33013f255bf0ed8f34]

url:    https://github.com/intel-lab-lkp/linux/commits/Subhajit-Ghosh/dt-bindings-iio-light-Avago-APDS9306/20231027-154954
base:   611da07b89fdd53f140d7b33013f255bf0ed8f34
patch link:    https://lore.kernel.org/r/20231027074545.6055-3-subhajit.ghosh%40tweaklogic.com
patch subject: [PATCH v2 2/2] iio: light: Add support for APDS9306 Light Sensor
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20231028/202310281420.see2fNLh-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/20231028/202310281420.see2fNLh-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/202310281420.see2fNLh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/light/apds9306.c:110: warning: cannot understand function prototype: 'const int apds9306_repeat_rate_freq[][2] = '
>> drivers/iio/light/apds9306.c:123: warning: cannot understand function prototype: 'const int apds9306_repeat_rate_period[] = '


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

   106	
   107	/**
   108	 * apds9306_repeat_rate_freq - Sampling Frequency in uHz
   109	 */
 > 110	static const int apds9306_repeat_rate_freq[][2] = {
   111		{40, 0},
   112		{20, 0},
   113		{10, 0},
   114		{5,  0},
   115		{2,  0},
   116		{1,  0},
   117		{0, 500000},
   118	};
   119	
   120	/**
   121	 * apds9306_repeat_rate_period - Sampling period in uSec
   122	 */
 > 123	static const int apds9306_repeat_rate_period[] = {
   124		25000, 50000, 100000, 200000, 500000, 1000000, 2000000
   125	};
   126	static_assert(ARRAY_SIZE(apds9306_repeat_rate_freq) ==
   127		      ARRAY_SIZE(apds9306_repeat_rate_period));
   128	

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux