[lkml]   [2022]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 2/2] iio: light: Add support for ltrf216a sensor
Hi Shreeya,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on v5.19-rc1]
[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]

base: togreg
config: i386-allyesconfig (
compiler: clang version 15.0.0 ( b92436efcb7813fc481b30f2593a4907568d917a)
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add linux-review
git fetch --no-tags linux-review Shreeya-Patel/Add-LTRF216A-Driver/20220608-194016
git checkout 4809a7f42af19c3da77457e1aaf37ddd171fa779
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/iio/adc/ drivers/iio/light/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <>

All warnings (new ones prefixed by >>):

>> drivers/iio/light/ltrf216a.c:193:5: warning: no previous prototype for function 'ltrf216a_check_for_data' [-Wmissing-prototypes]
int ltrf216a_check_for_data(struct i2c_client *client)
drivers/iio/light/ltrf216a.c:193:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ltrf216a_check_for_data(struct i2c_client *client)
1 warning generated.

vim +/ltrf216a_check_for_data +193 drivers/iio/light/ltrf216a.c

> 193 int ltrf216a_check_for_data(struct i2c_client *client)
194 {
195 int ret;
197 ret = i2c_smbus_read_byte_data(client, LTRF216A_MAIN_STATUS);
198 if (ret < 0) {
199 dev_err(&client->dev, "Failed to read LTRF216A_MAIN_STATUS register: %d\n", ret);
200 return ret;
201 }
203 return ret;
204 }

0-DAY CI Kernel Test Service

 \ /
  Last update: 2022-06-09 04:27    [W:0.154 / U:2.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site