Re: [PATCH v5 3/3] iio: adc: mt6360: Add ADC driver for MT6360
From: kernel test robot <hidden>
Date: 2020-09-21 13:46:20
Also in:
linux-mediatek, oe-kbuild-all
Hi Gene, Thank you for the patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on robh/for-next soc/for-next v5.9-rc6 next-20200921] [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] url: https://github.com/0day-ci/linux/commits/Gene-Chen/iio-adc-mt6360-Add-ADC-driver-for-MT6360/20200921-192626 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):
quoted
drivers/iio/adc/mt6360-adc.c:212:3: error: 'const struct iio_info' has no member named 'read_label'; did you mean 'read_raw'?
212 | .read_label = mt6360_adc_read_label,
| ^~~~~~~~~~
| read_rawquoted
drivers/iio/adc/mt6360-adc.c:212:16: error: initialization of 'int (*)(struct iio_dev *, const struct iio_chan_spec *, int, int *, int *, long int)' from incompatible pointer type 'int (*)(struct iio_dev *, const struct iio_chan_spec *, char *)' [-Werror=incompatible-pointer-types]
212 | .read_label = mt6360_adc_read_label,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/mt6360-adc.c:212:16: note: (near initialization for 'mt6360_adc_iio_info.read_raw_multi')
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/61f3d1735f345c9a1946571a99d4b481eaa83e3d
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gene-Chen/iio-adc-mt6360-Add-ADC-driver-for-MT6360/20200921-192626
git checkout 61f3d1735f345c9a1946571a99d4b481eaa83e3d
vim +212 drivers/iio/adc/mt6360-adc.c
209
210 static const struct iio_info mt6360_adc_iio_info = {
211 .read_raw = mt6360_adc_read_raw,
> 212 .read_label = mt6360_adc_read_label,
213 };
214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 57880 bytes
- (unnamed) [text/plain] 176 bytes · preview