From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [avpatel:riscv_kvm_v17 16/22] drivers/clocksource/timer-riscv.c:83:6: warning: no previous prototype for function 'riscv_cs_get_mult_shift'
Date: Thu, 18 Feb 2021 21:47:15 +0800 [thread overview]
Message-ID: <202102182109.3VRkCOVC-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2116 bytes --]
tree: https://github.com/avpatel/linux.git riscv_kvm_v17
head: ba7ce7de0cc0281ef05082cf82d498222443c9bf
commit: 48d5f95187b37f1612ac6738e3af1d854f200bd3 [16/22] RISC-V: KVM: Add timer functionality
config: riscv-randconfig-r005-20210217 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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/48d5f95187b37f1612ac6738e3af1d854f200bd3
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_kvm_v17
git checkout 48d5f95187b37f1612ac6738e3af1d854f200bd3
# 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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25446 bytes --]
reply other threads:[~2021-02-18 13:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102182109.3VRkCOVC-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.