Content-Type: multipart/mixed; boundary="===============0287197491492522787==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 3/7] iio: adc: qcom-spmi-rradc: introduce round robin adc Date: Thu, 06 Jan 2022 05:05:49 +0800 Message-ID: <202201060438.QiDzs9rA-lkp@intel.com> In-Reply-To: <20220105183353.2505744-4-caleb.connolly@linaro.org> List-Id: --===============0287197491492522787== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Caleb, Thank you for the patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on jic23-iio/togreg lee-mfd/for-mfd-next v5.16-rc8 n= ext-20220105] [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/Caleb-Connolly/iio-adc-int= roduce-Qualcomm-SPMI-Round-Robin-ADC/20220106-023716 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-= next config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220106/2= 02201060438.QiDzs9rA-lkp(a)intel.com/config) compiler: sh4-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/167368793a009e8c1ce75b0b8= b0965a4574af527 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Caleb-Connolly/iio-adc-introduce-Q= ualcomm-SPMI-Round-Robin-ADC/20220106-023716 git checkout 167368793a009e8c1ce75b0b8b0965a4574af527 # 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=3Dsh SHELL=3D/bin/bash drivers/iio/adc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/iio/adc/qcom-spmi-rradc.c: In function 'rradc_prepare_batt_id_co= nversion': >> drivers/iio/adc/qcom-spmi-rradc.c:624:25: error: implicit declaration of= function 'FIELD_PREP' [-Werror=3Dimplicit-function-declaration] 624 | FIELD_PREP(BATT_ID_SETTLE_MASK, chip->ba= tt_id_delay); | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/FIELD_PREP +624 drivers/iio/adc/qcom-spmi-rradc.c 607 = 608 static int rradc_prepare_batt_id_conversion(struct rradc_chip *chip, 609 enum rradc_channel_id chan_id, 610 u16 *data) 611 { 612 int ret, batt_id_delay; 613 = 614 ret =3D regmap_update_bits(chip->regmap, chip->base + RR_ADC_BATT_I= D_CTRL, 615 RR_ADC_BATT_ID_CTRL_CHANNEL_CONV, 616 RR_ADC_BATT_ID_CTRL_CHANNEL_CONV); 617 if (ret < 0) { 618 dev_err(chip->dev, "Enabling BATT ID channel failed:%d\n", ret); 619 return ret; 620 } 621 = 622 if (chip->batt_id_delay !=3D -EINVAL) { 623 batt_id_delay =3D > 624 FIELD_PREP(BATT_ID_SETTLE_MASK, chip->batt_id_delay); 625 ret =3D regmap_update_bits(chip->regmap, 626 chip->base + RR_ADC_BATT_ID_CFG, 627 batt_id_delay, batt_id_delay); 628 if (ret < 0) { 629 dev_err(chip->dev, 630 "BATT_ID settling time config failed:%d\n", 631 ret); 632 goto out_disable_batt_id; 633 } 634 } 635 = 636 ret =3D regmap_update_bits(chip->regmap, 637 chip->base + RR_ADC_BATT_ID_TRIGGER, 638 RR_ADC_TRIGGER_CTL, RR_ADC_TRIGGER_CTL); 639 if (ret < 0) { 640 dev_err(chip->dev, "BATT_ID trigger set failed:%d\n", ret); 641 goto out_disable_batt_id; 642 } 643 = 644 ret =3D rradc_read_status_in_cont_mode(chip, chan_id); 645 if (ret < 0) 646 dev_err(chip->dev, "Error reading in continuous mode:%d\n", 647 ret); 648 = 649 /* 650 * Reset registers back to default values 651 */ 652 ret =3D regmap_update_bits(chip->regmap, 653 chip->base + RR_ADC_BATT_ID_TRIGGER, 654 RR_ADC_TRIGGER_CTL, 0); 655 if (ret < 0) 656 dev_err(chip->dev, "BATT_ID trigger re-set failed:%d\n", ret); 657 = 658 out_disable_batt_id: 659 ret =3D regmap_update_bits(chip->regmap, chip->base + RR_ADC_BATT_I= D_CTRL, 660 RR_ADC_BATT_ID_CTRL_CHANNEL_CONV, 0); 661 if (ret < 0) 662 dev_err(chip->dev, "Disabling BATT ID channel failed:%d\n", 663 ret); 664 = 665 return ret; 666 } 667 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0287197491492522787==--