[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'

kernel test robot lkp at intel.com
Tue Dec 14 10:56:38 PST 2021


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: x86_64-randconfig-r016-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150241.QL8LVJg0-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
        # 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=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/power/supply/

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

All errors (new ones prefixed by >>):

>> drivers/power/supply/samsung-sdi-battery.c:393:5: error: redefinition of 'samsung_sdi_battery_get_info'
   int samsung_sdi_battery_get_info(struct device *dev,
       ^
   drivers/power/supply/samsung-sdi-battery.h:7:19: note: previous definition is here
   static inline int samsung_sdi_battery_get_info(struct device *dev,
                     ^
   1 error generated.


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



More information about the linux-arm-kernel mailing list