tree:
https://github.com/avpatel/linux.git riscv_kvm_v18
head: f198c4badee6795b153eb2ed3ec6d173829f71bc
commit: ee2968004c30cf4e1a0346dd876d57ab0a0e78d4 [14/20] RISC-V: KVM: Add timer
functionality
config: riscv-randconfig-r013-20210518 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
ceb1ac9812cb0972cfa34cecc5e5704ae2a22063)
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
#
https://github.com/avpatel/linux/commit/ee2968004c30cf4e1a0346dd876d57ab0...
git remote add avpatel
https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_kvm_v18
git checkout ee2968004c30cf4e1a0346dd876d57ab0a0e78d4
# 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:83: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:83: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 +83 drivers/clocksource/timer-riscv.c
82
83 void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
84 {
85 *mult = riscv_clocksource.mult;
86 *shift = riscv_clocksource.shift;
87 }
88 EXPORT_SYMBOL_GPL(riscv_cs_get_mult_shift);
89
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org