[linusw-nomadik:ux500-href-charging-v5.16-rc1-prim 35/35] drivers/power/supply/samsung-sdi-battery.c:55:5: warning: no previous prototype for 'samsung_sdi_battery_get_info'

From: kernel test robot <hidden>
Date: 2021-12-14 06:55:29
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-prim
head:   86b93a3192d2eb04134708293a8274948d210db4
commit: 86b93a3192d2eb04134708293a8274948d210db4 [35/35] samsung hack
config: ia64-buildonly-randconfig-r002-20211214 (https://download.01.org/0day-ci/archive/20211214/202112141408.YsblgOpj-lkp@intel.com/config)
compiler: ia64-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=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=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/power/supply/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>

All warnings (new ones prefixed by >>):
quoted
drivers/power/supply/samsung-sdi-battery.c:55:5: warning: no previous prototype for 'samsung_sdi_battery_get_info' [-Wmissing-prototypes]
      55 | int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/power/supply/samsung-sdi-battery.c: In function 'samsung_sdi_battery_get_info':
   drivers/power/supply/samsung-sdi-battery.c:71:1: error: control reaches end of non-void function [-Werror=return-type]
      71 | }
         | ^
   cc1: some warnings being treated as errors


vim +/samsung_sdi_battery_get_info +55 drivers/power/supply/samsung-sdi-battery.c

    54	
  > 55	int samsung_sdi_battery_get_info(struct power_supply_battery_info **info,

---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help