[soc:at91/soc 6/6] drivers/soc/microchip/mpfs-sys-controller.c:76:6: warning: no previous prototype for function 'mpfs_sys_controller_put'
kernel test robot
lkp at intel.com
Fri Feb 25 17:21:23 PST 2022
tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git at91/soc
head: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4
commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [6/6] soc: add microchip polarfire soc system controller
config: hexagon-randconfig-r005-20220226 (https://download.01.org/0day-ci/archive/20220226/202202260947.F5T1YNao-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/soc/soc.git/commit/?id=d0054a470c33902f5ae88835ed8a8ecc3cf8faa4
git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
git fetch --no-tags soc at91/soc
git checkout d0054a470c33902f5ae88835ed8a8ecc3cf8faa4
# 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=hexagon SHELL=/bin/bash drivers/soc/microchip/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/soc/microchip/mpfs-sys-controller.c:76:6: warning: no previous prototype for function 'mpfs_sys_controller_put' [-Wmissing-prototypes]
void mpfs_sys_controller_put(void *data)
^
drivers/soc/microchip/mpfs-sys-controller.c:76:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mpfs_sys_controller_put(void *data)
^
static
1 warning generated.
vim +/mpfs_sys_controller_put +76 drivers/soc/microchip/mpfs-sys-controller.c
75
> 76 void mpfs_sys_controller_put(void *data)
77 {
78 struct mpfs_sys_controller *sys_controller = data;
79
80 kref_put(&sys_controller->consumers, mpfs_sys_controller_delete);
81 }
82 EXPORT_SYMBOL(mpfs_sys_controller_put);
83
---
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