tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: c2acdef3cdd79e1703043f159b8cc5296e7d5fce
commit: 3d22a03f064e2b3b78a4660fc4821f3a830b1a80 [9996/9999] BACKPORT: FROMLIST: iio:
proximity: Add sx9360 support
config: alpha-allyesconfig
(
https://download.01.org/0day-ci/archive/20220110/202201101901.vc7BkxM7-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 3d22a03f064e2b3b78a4660fc4821f3a830b1a80
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=alpha SHELL=/bin/bash drivers/iio/proximity/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/iio/proximity/sx9360.c: In function 'sx9360_set_samp_freq':
> drivers/iio/proximity/sx9360.c:386:18: warning: variable
'reg' set but not used [-Wunused-but-set-variable]
386 | int
ret, reg;
| ^~~
vim +/reg +386 drivers/iio/proximity/sx9360.c
382
383 static int sx9360_set_samp_freq(struct sx_common_data *data,
384 int val, int val2)
385 {
386 int ret, reg;
387 __be16 buf;
388
389 reg = val * 8192 / SX9360_FOSC_HZ + val2 * 8192 / (SX9360_FOSC_MHZ);
390 buf = cpu_to_be16(val);
391 mutex_lock(&data->mutex);
392
393 ret = regmap_bulk_write(data->regmap, SX9360_REG_GNRL_CTRL1, &buf,
394 sizeof(buf));
395
396 mutex_unlock(&data->mutex);
397
398 return ret;
399 }
400
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org