[linusw-nomadik:ux500-href-charging-v5.16-rc1 36/36] drivers/power/supply/samsung-sdi-battery.c:393:5: error: redefinition of 'samsung_sdi_battery_get_info'
From: kernel test robot <hidden>
Date: 2021-12-14 02:36:42
Also in:
oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-charging-v5.16-rc1 head: 32391681d89fce910d0190dc32a6febe33a74041 commit: 32391681d89fce910d0190dc32a6febe33a74041 [36/36] power: supply: Static data for Samsung batteries config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20211214/202112141005.Sh9OZ9XN-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=32391681d89fce910d0190dc32a6febe33a74041 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 git checkout 32391681d89fce910d0190dc32a6febe33a74041 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/power/supply/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):
quoted
drivers/power/supply/samsung-sdi-battery.c:393:5: error: redefinition of 'samsung_sdi_battery_get_info'
393 | int samsung_sdi_battery_get_info(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/power/supply/samsung-sdi-battery.c:10:
drivers/power/supply/samsung-sdi-battery.h:7:19: note: previous definition of 'samsung_sdi_battery_get_info' with type 'int(struct device *, struct device_node *, struct power_supply_battery_info **)'
7 | static inline int samsung_sdi_battery_get_info(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/samsung_sdi_battery_get_info +393 drivers/power/supply/samsung-sdi-battery.c
392
> 393 int samsung_sdi_battery_get_info(struct device *dev,
---
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