From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v2 5/6] power: supply: Add bd718(27/28/78) charger driver
Date: Fri, 11 Dec 2020 10:47:03 +0800 [thread overview]
Message-ID: <202012111036.VobNfoTz-lkp@intel.com> (raw)
In-Reply-To: <6a2b702f578b393425d6fad184972008a48b7eaf.1607085199.git.matti.vaittinen@fi.rohmeurope.com>
[-- Attachment #1: Type: text/plain, Size: 3953 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: arm64-randconfig-r005-20201210 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1968804ac726e7674d5de22bc2204b45857da344)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/9509c087743c74e8a856860210f287d980d5da1b
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 9509c087743c74e8a856860210f287d980d5da1b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/bd71827-power.c:996:5: warning: no previous prototype for function 'bd71827_get_ocv' [-Wmissing-prototypes]
int bd71827_get_ocv(struct sw_gauge *sw, int dsoc, int temp, int *ocv)
^
drivers/power/supply/bd71827-power.c:996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int bd71827_get_ocv(struct sw_gauge *sw, int dsoc, int temp, int *ocv)
^
static
>> drivers/power/supply/bd71827-power.c:1745:5: warning: no previous prototype for function 'bd7182x_get_irqs' [-Wmissing-prototypes]
int bd7182x_get_irqs(struct platform_device *pdev, struct bd71827_power *pwr)
^
drivers/power/supply/bd71827-power.c:1745:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int bd7182x_get_irqs(struct platform_device *pdev, struct bd71827_power *pwr)
^
static
>> drivers/power/supply/bd71827-power.c:1782:5: warning: no previous prototype for function 'bd7182x_get_rsens' [-Wmissing-prototypes]
int bd7182x_get_rsens(struct bd71827_power *pwr)
^
drivers/power/supply/bd71827-power.c:1782:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int bd7182x_get_rsens(struct bd71827_power *pwr)
^
static
3 warnings generated.
vim +/bd71827_get_ocv +996 drivers/power/supply/bd71827-power.c
990
991 /*
992 * Standard batinfo supports only accuracy of 1% for SOC - which
993 * may not be sufficient for us. SWGAUGE provides soc in unts of 0.1% here
994 * to allow more accurate computation.
995 */
> 996 int bd71827_get_ocv(struct sw_gauge *sw, int dsoc, int temp, int *ocv)
997 {
998 int i = 0;
999
1000 if (dsoc > soc_table[0]) {
1001 *ocv = MAX_VOLTAGE_DEFAULT;
1002 return 0;
1003 }
1004 if (dsoc == 0) {
1005 *ocv = ocv_table[21];
1006 return 0;
1007 }
1008
1009 i = 0;
1010 while (i < 22) {
1011 if ((dsoc <= soc_table[i]) && (dsoc > soc_table[i+1])) {
1012 *ocv = (ocv_table[i] - ocv_table[i+1]) *
1013 (dsoc - soc_table[i+1]) / (soc_table[i] -
1014 soc_table[i+1]) + ocv_table[i+1];
1015 return 0;
1016 }
1017 i++;
1018 }
1019
1020 *ocv = ocv_table[22];
1021
1022 return 0;
1023 }
1024
---
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: 34794 bytes --]
next prev parent reply other threads:[~2020-12-11 2:47 UTC|newest]
Thread overview: 19+ 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
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 [this message]
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
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=202012111036.VobNfoTz-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.