[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'

From: kernel test robot
Date: Mon Mar 08 2021 - 09:38:11 EST


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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip