All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v2 2/6] power: supply: add sw-gauge for SOC estimation and CC correction
Date: Sat, 05 Dec 2020 01:11:14 +0800	[thread overview]
Message-ID: <202012050101.UQldwElf-lkp@intel.com> (raw)
In-Reply-To: <639bd97975a7420f6357bdc6161e1fc427fca79d.1607085199.git.matti.vaittinen@fi.rohmeurope.com>

[-- Attachment #1: Type: text/plain, Size: 3094 bytes --]

Hi Matti,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 09162bc32c880a791c6c0668ce0745cf7958f576]

url:    https://github.com/0day-ci/linux/commits/Matti-Vaittinen/power-supply-Add-some-fuel-gauge-logic/20201204-205731
base:    09162bc32c880a791c6c0668ce0745cf7958f576
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 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/d7d68650b1fb6da80b5ba5953454bae6bbe420da
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Matti-Vaittinen/power-supply-Add-some-fuel-gauge-logic/20201204-205731
        git checkout d7d68650b1fb6da80b5ba5953454bae6bbe420da
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/power/supply/power_supply_swgauge.c: In function 'adjust_cc_full':
>> drivers/power/supply/power_supply_swgauge.c:341:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     341 |  int ret, from_full_uah = 0;
         |      ^~~
   drivers/power/supply/power_supply_swgauge.c: In function 'compute_soc_by_cc':
>> drivers/power/supply/power_supply_swgauge.c:642:3: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
     642 |   ;
         |   ^
   drivers/power/supply/power_supply_swgauge.c: At top level:
   drivers/power/supply/power_supply_swgauge.c:818:6: warning: no previous prototype for 'stop_gauge_thread' [-Wmissing-prototypes]
     818 | void stop_gauge_thread(struct task_struct *k)
         |      ^~~~~~~~~~~~~~~~~

vim +/ret +341 drivers/power/supply/power_supply_swgauge.c

   338	
   339	static int adjust_cc_full(struct sw_gauge *sw)
   340	{
 > 341		int ret, from_full_uah = 0;
   342		int full_uah = sw->designed_cap;
   343	
   344		if (sw->ops.get_uah_from_full)
   345			ret = sw->ops.get_uah_from_full(sw, &from_full_uah);
   346	
   347		full_uah -= from_full_uah;
   348	
   349		/*
   350		 * ROHM algorithm adjusts CC here based on designed capacity and not
   351		 * based on age/temperature corrected capacity. This helps avoiding
   352		 * CC dropping below zero when we estimate aging/temperature impact
   353		 * badly. It also allows to keep the estimated SOC in the sw-gauge
   354		 * so that all IC drivers do not need to care about it - at least
   355		 * in theory. But most importantly - this approach is tested on the
   356		 * field :)
   357		 */
   358		return sw->ops.update_cc_uah(sw, full_uah);
   359	}
   360	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69135 bytes --]

  reply	other threads:[~2020-12-04 17:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 12:39 [RFC PATCH v2 0/6] power: supply: Add some fuel-gauge logic Matti Vaittinen
2020-12-04 12:41 ` [RFC PATCH v2 1/6] power: supply: add cap2ocv batinfo helper Matti Vaittinen
2020-12-08  8:54   ` Linus Walleij
2020-12-08  9:30     ` Vaittinen, Matti
2020-12-04 12:43 ` [RFC PATCH v2 2/6] power: supply: add sw-gauge for SOC estimation and CC correction Matti Vaittinen
2020-12-04 17:11   ` kernel test robot [this message]
2020-12-07 10:26   ` Dan Carpenter
2020-12-07 10:26     ` Dan Carpenter
2020-12-11  1:05   ` kernel test robot
2020-12-04 12:47 ` [RFC PATCH v2 3/6] mfd: prepare to support BD718xx-charger Matti Vaittinen
2020-12-16  8:49   ` Lee Jones
2020-12-04 12:49 ` [RFC PATCH v2 4/6] mfd: add BD71827 header Matti Vaittinen
2020-12-16  8:53   ` Lee Jones
2020-12-17  9:40     ` Vaittinen, Matti
2020-12-04 12:53 ` [RFC PATCH v2 5/6] power: supply: Add bd718(27/28/78) charger driver Matti Vaittinen
2020-12-04 18:02   ` kernel test robot
2020-12-11  2:47   ` kernel test robot
2020-12-04 12:54 ` [RFC PATCH v2 6/6] MFD: bd71828: differentiate bd71828 and bd71827 chargers Matti Vaittinen
2020-12-16  8:55   ` Lee Jones
  -- strict thread matches above, loose matches on Subject: below --
2020-12-05 23:58 [RFC PATCH v2 2/6] power: supply: add sw-gauge for SOC estimation and CC correction kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202012050101.UQldwElf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.