Content-Type: multipart/mixed; boundary="===============0828244254135871960==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/3] iio: dac: add support for ltc2688 Date: Sun, 16 Jan 2022 02:15:14 +0800 Message-ID: <202201160237.Mxs5GYw3-lkp@intel.com> In-Reply-To: <20220115092705.491-2-nuno.sa@analog.com> List-Id: --===============0828244254135871960== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Nuno, I love your patch! Yet something to improve: [auto build test ERROR on jic23-iio/togreg] [also build test ERROR on robh/for-next linus/master v5.16 next-20220115] [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/Nuno-S/Add-support-for-LTC= 2688/20220115-172930 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/2022011= 6/202201160237.Mxs5GYw3-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/d91bcc420e0c6077053e559f6= 76fa4ae76114ba5 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Nuno-S/Add-support-for-LTC2688/202= 20115-172930 git checkout d91bcc420e0c6077053e559f676fa4ae76114ba5 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/iio/dac/ltc2688.c:590:18: error: initialization of 'ssize_t (*)(= struct iio_dev *, uintptr_t, const struct iio_chan_spec *, const char *, s= ize_t)' {aka 'long int (*)(struct iio_dev *, long unsigned int, const stru= ct iio_chan_spec *, const char *, long unsigned int)'} from incompatible po= inter type 'int (*)(struct iio_dev *, uintptr_t, const struct iio_chan_spe= c *, const char *, size_t)' {aka 'int (*)(struct iio_dev *, long unsigned i= nt, const struct iio_chan_spec *, const char *, long unsigned int)'} [-Wer= ror=3Dincompatible-pointer-types] 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:604:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 604 | LTC2688_CHAN_EXT_INFO("toggle_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ltc2688.c:590:18: note: (near initialization for 'ltc268= 8_toggle_sym_ext_info[2].write') 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:604:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 604 | LTC2688_CHAN_EXT_INFO("toggle_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/dac/ltc2688.c:590:18: error: initialization of 'ssize_t (*)(= struct iio_dev *, uintptr_t, const struct iio_chan_spec *, const char *, s= ize_t)' {aka 'long int (*)(struct iio_dev *, long unsigned int, const stru= ct iio_chan_spec *, const char *, long unsigned int)'} from incompatible po= inter type 'int (*)(struct iio_dev *, uintptr_t, const struct iio_chan_spe= c *, const char *, size_t)' {aka 'int (*)(struct iio_dev *, long unsigned i= nt, const struct iio_chan_spec *, const char *, long unsigned int)'} [-Wer= ror=3Dincompatible-pointer-types] 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:619:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 619 | LTC2688_CHAN_EXT_INFO("toggle_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ltc2688.c:590:18: note: (near initialization for 'ltc268= 8_toggle_ext_info[2].write') 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:619:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 619 | LTC2688_CHAN_EXT_INFO("toggle_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/dac/ltc2688.c:590:18: error: initialization of 'ssize_t (*)(= struct iio_dev *, uintptr_t, const struct iio_chan_spec *, const char *, s= ize_t)' {aka 'long int (*)(struct iio_dev *, long unsigned int, const stru= ct iio_chan_spec *, const char *, long unsigned int)'} from incompatible po= inter type 'int (*)(struct iio_dev *, uintptr_t, const struct iio_chan_spe= c *, const char *, size_t)' {aka 'int (*)(struct iio_dev *, long unsigned i= nt, const struct iio_chan_spec *, const char *, long unsigned int)'} [-Wer= ror=3Dincompatible-pointer-types] 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:639:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 639 | LTC2688_CHAN_EXT_INFO("dither_frequency", 0, IIO_SEPARAT= E, | ^~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ltc2688.c:590:18: note: (near initialization for 'ltc268= 8_dither_ext_info[3].write') 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:639:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 639 | LTC2688_CHAN_EXT_INFO("dither_frequency", 0, IIO_SEPARAT= E, | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/dac/ltc2688.c:590:18: error: initialization of 'ssize_t (*)(= struct iio_dev *, uintptr_t, const struct iio_chan_spec *, const char *, s= ize_t)' {aka 'long int (*)(struct iio_dev *, long unsigned int, const stru= ct iio_chan_spec *, const char *, long unsigned int)'} from incompatible po= inter type 'int (*)(struct iio_dev *, uintptr_t, const struct iio_chan_spe= c *, const char *, size_t)' {aka 'int (*)(struct iio_dev *, long unsigned i= nt, const struct iio_chan_spec *, const char *, long unsigned int)'} [-Wer= ror=3Dincompatible-pointer-types] 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:641:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 641 | LTC2688_CHAN_EXT_INFO("dither_frequency_available", | ^~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ltc2688.c:590:18: note: (near initialization for 'ltc268= 8_dither_ext_info[4].write') 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:641:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 641 | LTC2688_CHAN_EXT_INFO("dither_frequency_available", | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/dac/ltc2688.c:590:18: error: initialization of 'ssize_t (*)(= struct iio_dev *, uintptr_t, const struct iio_chan_spec *, const char *, s= ize_t)' {aka 'long int (*)(struct iio_dev *, long unsigned int, const stru= ct iio_chan_spec *, const char *, long unsigned int)'} from incompatible po= inter type 'int (*)(struct iio_dev *, uintptr_t, const struct iio_chan_spe= c *, const char *, size_t)' {aka 'int (*)(struct iio_dev *, long unsigned i= nt, const struct iio_chan_spec *, const char *, long unsigned int)'} [-Wer= ror=3Dincompatible-pointer-types] 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:647:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 647 | LTC2688_CHAN_EXT_INFO("dither_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ltc2688.c:590:18: note: (near initialization for 'ltc268= 8_dither_ext_info[7].write') 590 | .write =3D (_write), = \ | ^ drivers/iio/dac/ltc2688.c:647:9: note: in expansion of macro 'LTC2688_CH= AN_EXT_INFO' 647 | LTC2688_CHAN_EXT_INFO("dither_en", LTC2688_CMD_TOGGLE_DI= THER_EN, | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +590 drivers/iio/dac/ltc2688.c 586 = 587 #define LTC2688_CHAN_EXT_INFO(_name, _what, _shared, _read, _write) = { \ 588 .name =3D _name, \ 589 .read =3D (_read), \ > 590 .write =3D (_write), \ 591 .private =3D (_what), \ 592 .shared =3D (_shared), \ 593 } 594 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0828244254135871960==--