* [linusw-nomadik:ux500-href-charging-v5.16-rc1-prim 35/35] drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths
@ 2021-12-15 12:59 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-12-15 12:59 UTC (permalink / raw)
To: Linus Walleij; +Cc: llvm, kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-charging-v5.16-rc1-prim
head: 86b93a3192d2eb04134708293a8274948d210db4
commit: 86b93a3192d2eb04134708293a8274948d210db4 [35/35] samsung hack
config: riscv-randconfig-r026-20211214 (https://download.01.org/0day-ci/archive/20211215/202112152004.1gns6xiD-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=86b93a3192d2eb04134708293a8274948d210db4
git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags linusw-nomadik ux500-href-charging-v5.16-rc1-prim
git checkout 86b93a3192d2eb04134708293a8274948d210db4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/power/supply/samsung-sdi-battery.c:55:5: warning: no previous prototype for function 'samsung_sdi_battery_get_info' [-Wmissing-prototypes]
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
drivers/power/supply/samsung-sdi-battery.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
static
>> drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 warning and 1 error generated.
vim +71 drivers/power/supply/samsung-sdi-battery.c
54
55 int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
56 struct device_node *np)
57 {
58 struct samsung_sdi_battery *batt;
59 int i;
60
61 for (i = 0; i < ARRAY_SIZE(samsung_sdi_batteries); i++) {
62 batt = &samsung_sdi_batteries[i];
63 if (of_device_is_compatible(np, batt->compatible))
64 break;
65 }
66
67 if (i == ARRAY_SIZE(samsung_sdi_batteries))
68 return -ENODEV;
69
70 *info = &batt->info;
> 71 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linusw-nomadik:ux500-href-charging-v5.16-rc1-prim 35/35] drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths
@ 2021-12-15 12:59 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-12-15 12:59 UTC (permalink / raw)
To: Linus Walleij; +Cc: llvm, kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-charging-v5.16-rc1-prim
head: 86b93a3192d2eb04134708293a8274948d210db4
commit: 86b93a3192d2eb04134708293a8274948d210db4 [35/35] samsung hack
config: riscv-randconfig-r026-20211214 (https://download.01.org/0day-ci/archive/20211215/202112152004.1gns6xiD-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=86b93a3192d2eb04134708293a8274948d210db4
git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags linusw-nomadik ux500-href-charging-v5.16-rc1-prim
git checkout 86b93a3192d2eb04134708293a8274948d210db4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/power/supply/samsung-sdi-battery.c:55:5: warning: no previous prototype for function 'samsung_sdi_battery_get_info' [-Wmissing-prototypes]
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
drivers/power/supply/samsung-sdi-battery.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
static
>> drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 warning and 1 error generated.
vim +71 drivers/power/supply/samsung-sdi-battery.c
54
55 int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
56 struct device_node *np)
57 {
58 struct samsung_sdi_battery *batt;
59 int i;
60
61 for (i = 0; i < ARRAY_SIZE(samsung_sdi_batteries); i++) {
62 batt = &samsung_sdi_batteries[i];
63 if (of_device_is_compatible(np, batt->compatible))
64 break;
65 }
66
67 if (i == ARRAY_SIZE(samsung_sdi_batteries))
68 return -ENODEV;
69
70 *info = &batt->info;
> 71 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linusw-nomadik:ux500-href-charging-v5.16-rc1-prim 35/35] drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths
@ 2021-12-15 12:59 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-12-15 12:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2915 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-charging-v5.16-rc1-prim
head: 86b93a3192d2eb04134708293a8274948d210db4
commit: 86b93a3192d2eb04134708293a8274948d210db4 [35/35] samsung hack
config: riscv-randconfig-r026-20211214 (https://download.01.org/0day-ci/archive/20211215/202112152004.1gns6xiD-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=86b93a3192d2eb04134708293a8274948d210db4
git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags linusw-nomadik ux500-href-charging-v5.16-rc1-prim
git checkout 86b93a3192d2eb04134708293a8274948d210db4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/power/supply/samsung-sdi-battery.c:55:5: warning: no previous prototype for function 'samsung_sdi_battery_get_info' [-Wmissing-prototypes]
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
drivers/power/supply/samsung-sdi-battery.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
^
static
>> drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 warning and 1 error generated.
vim +71 drivers/power/supply/samsung-sdi-battery.c
54
55 int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
56 struct device_node *np)
57 {
58 struct samsung_sdi_battery *batt;
59 int i;
60
61 for (i = 0; i < ARRAY_SIZE(samsung_sdi_batteries); i++) {
62 batt = &samsung_sdi_batteries[i];
63 if (of_device_is_compatible(np, batt->compatible))
64 break;
65 }
66
67 if (i == ARRAY_SIZE(samsung_sdi_batteries))
68 return -ENODEV;
69
70 *info = &batt->info;
> 71 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-15 13:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 12:59 [linusw-nomadik:ux500-href-charging-v5.16-rc1-prim 35/35] drivers/power/supply/samsung-sdi-battery.c:71:1: error: non-void function does not return a value in all control paths kernel test robot
2021-12-15 12:59 ` kernel test robot
2021-12-15 12:59 ` kernel test robot
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.