tree:
git://github.com/kvm-riscv/linux.git riscv_kvm_master
head: 36e7b3ba5f5456ef4f2d7989b06c4f1fea368e6f
commit: 0d79f1ca8d6a481003a90a439c4281acecbc79c1 [15/21] RISC-V: KVM: Add timer
functionality
config: riscv-randconfig-r005-20200710 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 0d79f1ca8d6a481003a90a439c4281acecbc79c1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/clocksource/timer-riscv.c:96:6: warning: no previous
prototype for function 'riscv_cs_get_mult_shift' [-Wmissing-prototypes]
void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
^
drivers/clocksource/timer-riscv.c:96:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
^
static
1 warning generated.
vim +/riscv_cs_get_mult_shift +96 drivers/clocksource/timer-riscv.c
95
96 void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
97 {
98 *mult = riscv_clocksource.mult;
99 *shift = riscv_clocksource.shift;
100 }
101 EXPORT_SYMBOL_GPL(riscv_cs_get_mult_shift);
102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org