[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202103082256.RQQzWxAT-lkp@intel.com>
Date: Mon, 8 Mar 2021 22:36:58 +0800
From: kernel test robot <lkp@...el.com>
To: Tom Lendacky <thomas.lendacky@....com>
Cc: kbuild-all@...org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org, x86@...nel.org,
Borislav Petkov <bp@...e.de>
Subject: [tip:x86/seves 2/2] arch/x86/mm/mem_encrypt.c:487:5: warning: no
previous prototype for function 'arch_has_restricted_virtio_memory_access'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/seves
head: 9da54be651f8a856d9e6c14183d0df948e222103
commit: 9da54be651f8a856d9e6c14183d0df948e222103 [2/2] x86/virtio: Have SEV guests enforce restricted virtio memory access
config: x86_64-randconfig-a013-20210308 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3a11a41795bec548e91621caaa4cc00fc31b2212)
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/tip/tip.git/commit/?id=9da54be651f8a856d9e6c14183d0df948e222103
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/seves
git checkout 9da54be651f8a856d9e6c14183d0df948e222103
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/mem_encrypt.c:487:5: warning: no previous prototype for function 'arch_has_restricted_virtio_memory_access' [-Wmissing-prototypes]
int arch_has_restricted_virtio_memory_access(void)
^
arch/x86/mm/mem_encrypt.c:487:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int arch_has_restricted_virtio_memory_access(void)
^
static
1 warning generated.
vim +/arch_has_restricted_virtio_memory_access +487 arch/x86/mm/mem_encrypt.c
486
> 487 int arch_has_restricted_virtio_memory_access(void)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (39278 bytes)
Powered by blists - more mailing lists