[ak:lto-5.13-1-wip 36/36] arch/x86/kernel/paravirt.c:127:15: warning: no previous prototype for function 'native_steal_clock'

1 view
Skip to first unread message

kernel test robot

unread,
Apr 25, 2021, 11:46:07 PM4/25/21
to Andi Kleen, kbuil...@lists.01.org, clang-bu...@googlegroups.com
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git lto-5.13-1-wip
head: 45fc24254df69291f9ebd597bc747df2eb61ee3a
commit: 45fc24254df69291f9ebd597bc747df2eb61ee3a [36/36] x86/paravirt/lto: Export native_steal_clock
config: x86_64-randconfig-a002-20210426 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d941863de2becb3d8d2e00676fc7125974934c7f)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git/commit/?id=45fc24254df69291f9ebd597bc747df2eb61ee3a
git remote add ak https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git
git fetch --no-tags ak lto-5.13-1-wip
git checkout 45fc24254df69291f9ebd597bc747df2eb61ee3a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/paravirt.c:127:15: warning: no previous prototype for function 'native_steal_clock' [-Wmissing-prototypes]
__visible u64 native_steal_clock(int cpu)
^
arch/x86/kernel/paravirt.c:127:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible u64 native_steal_clock(int cpu)
^
static
1 warning generated.


vim +/native_steal_clock +127 arch/x86/kernel/paravirt.c

126
> 127 __visible u64 native_steal_clock(int cpu)
128 {
129 return 0;
130 }
131

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuil...@lists.01.org
.config.gz

Nick Desaulniers

unread,
Apr 29, 2021, 6:27:41 PM4/29/21
to Andi Kleen, kbuil...@lists.01.org, clang-built-linux, kernel test robot, Kees Cook, Sami Tolvanen, Nathan Chancellor
On Sun, Apr 25, 2021 at 8:46 PM kernel test robot <l...@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git lto-5.13-1-wip
> head: 45fc24254df69291f9ebd597bc747df2eb61ee3a
> commit: 45fc24254df69291f9ebd597bc747df2eb61ee3a [36/36] x86/paravirt/lto: Export native_steal_clock

Nice tree ;) Hoping to see this posted again soon; let us know when
you like us to help test/review. Looking forward to faster kernels.
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202104261156.UkMxlZRd-lkp%40intel.com.



--
Thanks,
~Nick Desaulniers
Reply all
Reply to author
Forward
0 new messages