Re: [PATCH v3 07/10] iio: adc: ad_sigma_delta: Store information about reset sequence length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Uwe,

kernel test robot noticed the following build warnings:

[auto build test WARNING on adc218676eef25575469234709c2d87185ca223a]

url:    https://github.com/intel-lab-lkp/linux/commits/Uwe-Kleine-K-nig/iio-adc-ad7124-Don-t-create-more-channels-than-the-driver-can-handle/20241125-104725
base:   adc218676eef25575469234709c2d87185ca223a
patch link:    https://lore.kernel.org/r/20241122113322.242875-19-u.kleine-koenig%40baylibre.com
patch subject: [PATCH v3 07/10] iio: adc: ad_sigma_delta: Store information about reset sequence length
config: i386-buildonly-randconfig-003-20241125 (https://download.01.org/0day-ci/archive/20241125/202411251711.ZE0hl0cg-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241125/202411251711.ZE0hl0cg-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/202411251711.ZE0hl0cg-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/adc/ad_sigma_delta.c:186: warning: Excess function parameter 'reset_length' description in 'ad_sd_reset'


vim +186 drivers/iio/adc/ad_sigma_delta.c

af3008485ea037 Lars-Peter Clausen 2012-08-10  176  
7fc10de8d49a74 Dragos Bogdan      2017-09-05  177  /**
7fc10de8d49a74 Dragos Bogdan      2017-09-05  178   * ad_sd_reset() - Reset the serial interface
7fc10de8d49a74 Dragos Bogdan      2017-09-05  179   *
7fc10de8d49a74 Dragos Bogdan      2017-09-05  180   * @sigma_delta: The sigma delta device
7fc10de8d49a74 Dragos Bogdan      2017-09-05  181   * @reset_length: Number of SCLKs with DIN = 1
7fc10de8d49a74 Dragos Bogdan      2017-09-05  182   *
7fc10de8d49a74 Dragos Bogdan      2017-09-05  183   * Returns 0 on success, an error code otherwise.
7fc10de8d49a74 Dragos Bogdan      2017-09-05  184   **/
066265377484bc Uwe Kleine-König   2024-11-22  185  int ad_sd_reset(struct ad_sigma_delta *sigma_delta)
7fc10de8d49a74 Dragos Bogdan      2017-09-05 @186  {
066265377484bc Uwe Kleine-König   2024-11-22  187  	unsigned int reset_length = sigma_delta->info->num_resetclks;
066265377484bc Uwe Kleine-König   2024-11-22  188  	unsigned int size = DIV_ROUND_UP(reset_length, 8);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  189  	uint8_t *buf;
7fc10de8d49a74 Dragos Bogdan      2017-09-05  190  	int ret;
7fc10de8d49a74 Dragos Bogdan      2017-09-05  191  
7fc10de8d49a74 Dragos Bogdan      2017-09-05  192  	buf = kcalloc(size, sizeof(*buf), GFP_KERNEL);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  193  	if (!buf)
7fc10de8d49a74 Dragos Bogdan      2017-09-05  194  		return -ENOMEM;
7fc10de8d49a74 Dragos Bogdan      2017-09-05  195  
7fc10de8d49a74 Dragos Bogdan      2017-09-05  196  	memset(buf, 0xff, size);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  197  	ret = spi_write(sigma_delta->spi, buf, size);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  198  	kfree(buf);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  199  
7fc10de8d49a74 Dragos Bogdan      2017-09-05  200  	return ret;
7fc10de8d49a74 Dragos Bogdan      2017-09-05  201  }
ef807729767fb7 Jonathan Cameron   2022-01-30  202  EXPORT_SYMBOL_NS_GPL(ad_sd_reset, IIO_AD_SIGMA_DELTA);
7fc10de8d49a74 Dragos Bogdan      2017-09-05  203  

-- 
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