Content-Type: multipart/mixed; boundary="===============0761032096267243232==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH V3 3/3] regulator: da9121: Add DA914x support Date: Sat, 27 Nov 2021 11:03:51 +0800 Message-ID: <202111271151.bdZw3D77-lkp@intel.com> In-Reply-To: <31d387d0a364eef9d5ef72f0adf6d213197a4dfb.1637709844.git.Adam.Ward.opensource@diasemi.com> List-Id: --===============0761032096267243232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Adam, Thank you for the patch! Yet something to improve: [auto build test ERROR on broonie-regulator/for-next] [also build test ERROR on robh/for-next linux/master linus/master v5.16-rc2= next-20211126] [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/Adam-Ward/regulator-da9121= -add-DA914x-support/20211124-072849 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.g= it for-next config: nds32-randconfig-r003-20211126 (https://download.01.org/0day-ci/arc= hive/20211127/202111271151.bdZw3D77-lkp(a)intel.com/config) compiler: nds32le-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/623a92b6a8e3ca66e0792b1cb= 7dfa5b4bd769b81 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Adam-Ward/regulator-da9121-add-DA9= 14x-support/20211124-072849 git checkout 623a92b6a8e3ca66e0792b1cb7dfa5b4bd769b81 # 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=3Dnds32 SHELL=3D/bin/bash drivers/regulator/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/regulator/da9121-regulator.c:571:15: error: 'DA9141_IDX_BUCK1' u= ndeclared here (not in a function); did you mean 'DA9121_IDX_BUCK1'? 571 | .id =3D DA9141_IDX_BUCK1, | ^~~~~~~~~~~~~~~~ | DA9121_IDX_BUCK1 drivers/regulator/da9121-regulator.c:595:15: error: 'DA914X_IDX_BUCK1' u= ndeclared here (not in a function); did you mean 'DA9121_IDX_BUCK1'? 595 | .id =3D DA914X_IDX_BUCK1, | ^~~~~~~~~~~~~~~~ | DA9121_IDX_BUCK1 drivers/regulator/da9121-regulator.c: In function 'da9121_check_device_t= ype': >> drivers/regulator/da9121-regulator.c:1210:26: error: unterminated argume= nt list invoking macro "if" 1210 | MODULE_LICENSE("GPL v2"); | ^ >> drivers/regulator/da9121-regulator.c:1211: error: expected '(' at end of= input drivers/regulator/da9121-regulator.c:915:9: note: '-Wmisleading-indentat= ion' is disabled from this point onwards, since column-tracking was disable= d due to the size of the code/headers 915 | if ((device_id !=3D DA9121_DEVICE_ID) && (device_id !=3D= DA914X_DEVICE_ID) { | ^~ drivers/regulator/da9121-regulator.c:915:9: note: adding '-flarge-source= -files' will allow for more column-tracking support, at the expense of comp= ilation time and memory >> drivers/regulator/da9121-regulator.c:915:9: error: expected declaration = or statement at end of input drivers/regulator/da9121-regulator.c:912:17: error: label 'error' used b= ut not defined 912 | goto error; | ^~~~ drivers/regulator/da9121-regulator.c:900:14: warning: unused variable 'c= onfig_match' [-Wunused-variable] 900 | bool config_match =3D false; | ^~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:899:15: warning: unused variable 't= ype' [-Wunused-variable] 899 | char *type; | ^~~~ drivers/regulator/da9121-regulator.c:898:25: warning: unused variable 'v= ariant_vrc' [-Wunused-variable] 898 | u8 variant_mrc, variant_vrc; | ^~~~~~~~~~~ drivers/regulator/da9121-regulator.c:898:12: warning: unused variable 'v= ariant_mrc' [-Wunused-variable] 898 | u8 variant_mrc, variant_vrc; | ^~~~~~~~~~~ drivers/regulator/da9121-regulator.c:915:9: error: no return statement i= n function returning non-void [-Werror=3Dreturn-type] 915 | if ((device_id !=3D DA9121_DEVICE_ID) && (device_id !=3D= DA914X_DEVICE_ID) { | ^~ At top level: drivers/regulator/da9121-regulator.c:894:12: warning: 'da9121_check_devi= ce_type' defined but not used [-Wunused-function] 894 | static int da9121_check_device_type(struct i2c_client *i2c, stru= ct da9121 *chip) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:884:29: warning: 'da9121_2ch_regmap= _config' defined but not used [-Wunused-variable] 884 | static struct regmap_config da9121_2ch_regmap_config =3D { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:873:29: warning: 'da9121_1ch_regmap= _config' defined but not used [-Wunused-variable] 873 | static struct regmap_config da9121_1ch_regmap_config =3D { | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:775:12: warning: 'da9121_set_regula= tor_config' defined but not used [-Wunused-function] 775 | static int da9121_set_regulator_config(struct da9121 *chip) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:682:20: warning: 'da9121_irq_handle= r' defined but not used [-Wunused-function] 682 | static irqreturn_t da9121_irq_handler(int irq, void *data) | ^~~~~~~~~~~~~~~~~~ drivers/regulator/da9121-regulator.c:624:13: warning: 'da9121_status_pol= l_on' defined but not used [-Wunused-function] 624 | static void da9121_status_poll_on(struct work_struct *work) | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/if +1210 drivers/regulator/da9121-regulator.c e6ff10f24c587c1 Vincent Whitchurch 2020-11-03 1209 = e6ff10f24c587c1 Vincent Whitchurch 2020-11-03 @1210 MODULE_LICENSE("GPL v2= "); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0761032096267243232==--