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...
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/9509c087743c74e8a856860210f287d98...
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(a)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@lists.01.org