Re: [PATCH v2 2/2] iio: proximity: vl53l0x-i2c: Added continuous mode support
From: kernel test robot
Date: Mon Sep 02 2024 - 21:33:45 EST
Hi Abhash,
kernel test robot noticed the following build errors:
[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v6.11-rc6 next-20240902]
[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/Abhash-Jha/iio-proximity-vl53l0x-i2c-Added-sensor-ID-check/20240902-204936
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20240902122557.129013-3-abhashkumarjha123%40gmail.com
patch subject: [PATCH v2 2/2] iio: proximity: vl53l0x-i2c: Added continuous mode support
config: i386-buildonly-randconfig-005-20240903 (https://download.01.org/0day-ci/archive/20240903/202409030909.1CQBnx22-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409030909.1CQBnx22-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/202409030909.1CQBnx22-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/iio/proximity/vl53l0x-i2c.c:104:20: error: call to undeclared function 'get_unaligned_be16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
104 | data->scan.chan = get_unaligned_be16(&buffer[10]);
| ^
1 error generated.
vim +/get_unaligned_be16 +104 drivers/iio/proximity/vl53l0x-i2c.c
87
88 static irqreturn_t vl53l0x_trigger_handler(int irq, void *priv)
89 {
90 struct iio_poll_func *pf = priv;
91 struct iio_dev *indio_dev = pf->indio_dev;
92 struct vl53l0x_data *data = iio_priv(indio_dev);
93 u8 buffer[12];
94 int ret;
95
96 ret = i2c_smbus_read_i2c_block_data(data->client,
97 VL_REG_RESULT_RANGE_STATUS,
98 sizeof(buffer), buffer);
99 if (ret < 0)
100 return ret;
101 else if (ret != 12)
102 return -EREMOTEIO;
103
> 104 data->scan.chan = get_unaligned_be16(&buffer[10]);
105 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan,
106 iio_get_time_ns(indio_dev));
107
108 iio_trigger_notify_done(indio_dev->trig);
109 ret = vl53l0x_clear_irq(data);
110 if (ret < 0)
111 return ret;
112
113 return IRQ_HANDLED;
114 }
115
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki