Content-Type: multipart/mixed; boundary="===============7981441188112814400==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 05/14] power: supply: bq25890: fix ADC mode configuration Date: Sat, 04 Apr 2020 13:14:03 +0800 Message-ID: <202004041339.5x3xwKVj%lkp@intel.com> In-Reply-To: List-Id: --===============7981441188112814400== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Micha=C5=82, I love your patch! Perhaps something to improve: [auto build test WARNING on power-supply/for-next] [also build test WARNING on linus/master v5.6 next-20200403] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system. BTW, we also suggest to use '--base' option to specify = the base tree in git format-patch, please see https://stackoverflow.com/a/37406= 982] url: https://github.com/0day-ci/linux/commits/Micha-Miros-aw/power-suppl= y-bq25890-fix-and-extend/20200404-010738 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-sup= ply.git for-next reproduce: # apt-get install sparse # sparse version: v0.6.1-188-g79f7ac98-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/power/supply/bq25890_charger.c:381:14: sparse: sparse: undefined= identifier 'POWER_SUPPLY_PROP_INPUT_VOLTAGE_NOW' drivers/power/supply/bq25890_charger.c:382:14: sparse: sparse: undefined= identifier 'POWER_SUPPLY_PROP_OUTPUT_VOLTAGE_NOW' >> drivers/power/supply/bq25890_charger.c:381:14: sparse: sparse: incompati= ble types for 'case' statement drivers/power/supply/bq25890_charger.c:382:14: sparse: sparse: incompati= ble types for 'case' statement drivers/power/supply/bq25890_charger.c:686:23: sparse: sparse: incorrect= type in initializer (different modifiers) @@ expected unsigned int enum= power_supply_property *properties @@ got unsignunsigned int enum power_= supply_property *properties @@ drivers/power/supply/bq25890_charger.c:686:23: sparse: expected unsig= ned int enum power_supply_property *properties drivers/power/supply/bq25890_charger.c:686:23: sparse: got unsigned i= nt enum power_supply_property const * drivers/power/supply/bq25890_charger.c:381:14: sparse: sparse: Expected = constant expression in case statement drivers/power/supply/bq25890_charger.c:382:14: sparse: sparse: Expected = constant expression in case statement vim +/case +381 drivers/power/supply/bq25890_charger.c 377 = 378 static bool bq25890_is_adc_property(enum power_supply_property psp) 379 { 380 switch (psp) { > 381 case POWER_SUPPLY_PROP_INPUT_VOLTAGE_NOW: 382 case POWER_SUPPLY_PROP_OUTPUT_VOLTAGE_NOW: 383 case POWER_SUPPLY_PROP_VOLTAGE_NOW: 384 case POWER_SUPPLY_PROP_CURRENT_NOW: 385 return true; 386 = 387 default: 388 return false; 389 } 390 } 391 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7981441188112814400==--