drivers/clk/loongson1/clk-loongson1b.c:40:13: warning: no previous prototype for function 'ls1x_clk_init'
From: kernel test robot
Date: Sun Aug 14 2022 - 09:02:14 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aea23e7c464bfdec04b52cf61edb62030e9e0d0a
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date: 1 year, 11 months ago
config: mips-randconfig-r023-20220731 (https://download.01.org/0day-ci/archive/20220814/202208142045.g3U91bp3-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e)
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 mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kernel/ drivers/clk/loongson1/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/clk/loongson1/clk-loongson1b.c:40:13: warning: no previous prototype for function 'ls1x_clk_init' [-Wmissing-prototypes]
void __init ls1x_clk_init(void)
^
drivers/clk/loongson1/clk-loongson1b.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init ls1x_clk_init(void)
^
static
1 warning generated.
vim +/ls1x_clk_init +40 drivers/clk/loongson1/clk-loongson1b.c
3526f74fa925e4 drivers/clk/clk-ls1x.c Kelvin Cheung 2014-10-10 39
5175cb5894d606 drivers/clk/clk-ls1x.c Kelvin Cheung 2012-08-20 @40 void __init ls1x_clk_init(void)
:::::: The code at line 40 was first introduced by commit
:::::: 5175cb5894d606f1756c07a685e6dcabd2d8745a clk: add Loongson1B clock support
:::::: TO: Kelvin Cheung <keguang.zhang@xxxxxxxxx>
:::::: CC: Mike Turquette <mturquette@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://01.org/lkp