llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH V3 14/15] power: supply: axp20x_battery: add support for AXP717
       [not found] <20240819164619.556309-15-macroalpha82@gmail.com>
@ 2024-08-20  4:25 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-20  4:25 UTC (permalink / raw)
  To: Chris Morgan, linux-sunxi
  Cc: llvm, oe-kbuild-all, linux-pm, linux-arm-kernel, devicetree,
	linux-iio, quentin.schulz, mripard, tgamblin, aidanmacdonald.0x0,
	u.kleine-koenig, lee, samuel, jernej.skrabec, sre, wens, conor+dt,
	krzk+dt, robh, lars, jic23, jonathan.cameron, Chris Morgan,
	Philippe Simons

Hi Chris,

kernel test robot noticed the following build errors:

[auto build test ERROR on sre-power-supply/for-next]
[also build test ERROR on jic23-iio/togreg lee-mfd/for-mfd-next linus/master v6.11-rc4 next-20240819]
[cannot apply to lee-mfd/for-mfd-fixes]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Chris-Morgan/iio-adc-axp20x_adc-Add-adc_en1-and-adc_en1-to-axp_data/20240820-005144
base:   https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
patch link:    https://lore.kernel.org/r/20240819164619.556309-15-macroalpha82%40gmail.com
patch subject: [PATCH V3 14/15] power: supply: axp20x_battery: add support for AXP717
config: i386-buildonly-randconfig-005-20240820 (https://download.01.org/0day-ci/archive/20240820/202408201228.Hee4eSYl-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240820/202408201228.Hee4eSYl-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408201228.Hee4eSYl-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/power/supply/axp20x_battery.c:266:9: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     266 |         *val = FIELD_GET(AXP717_ICC_CHARGER_LIM_MASK, *val) *
         |                ^
   drivers/power/supply/axp20x_battery.c:439:17: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     439 |                 val->intval = FIELD_GET(AXP717_PWR_OP_BATT_PRESENT, reg);
         |                               ^
   2 errors generated.


vim +/FIELD_GET +266 drivers/power/supply/axp20x_battery.c

   256	
   257	static int axp717_get_constant_charge_current(struct axp20x_batt_ps *axp,
   258						      int *val)
   259	{
   260		int ret;
   261	
   262		ret = regmap_read(axp->regmap, AXP717_ICC_CHG_SET, val);
   263		if (ret)
   264			return ret;
   265	
 > 266		*val = FIELD_GET(AXP717_ICC_CHARGER_LIM_MASK, *val) *
   267			axp->data->ccc_scale;
   268	
   269		return 0;
   270	}
   271	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-20  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20240819164619.556309-15-macroalpha82@gmail.com>
2024-08-20  4:25 ` [PATCH V3 14/15] power: supply: axp20x_battery: add support for AXP717 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).