]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sgx: Mark sgx_vepc_vm_ops static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 12 Apr 2021 16:00:23 +0000 (16:00 +0000)
committerBorislav Petkov <bp@suse.de>
Mon, 12 Apr 2021 17:48:32 +0000 (19:48 +0200)
commit3387b6ab279f8cbd9c8b7d63f0b629b430a9bdf8
tree9c0ca92b8614fd95467a1b551fdd10f0975392e5
parent1b351e5d3fa7964fb6106490da7864ca999c145a
x86/sgx: Mark sgx_vepc_vm_ops static

Fix the following sparse warning:

  arch/x86/kernel/cpu/sgx/virt.c:95:35: warning:
    symbol 'sgx_vepc_vm_ops' was not declared. Should it be static?

This symbol is not used outside of virt.c so mark it static.

 [ bp: Massage commit message. ]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210412160023.193850-1-weiyongjun1@huawei.com
arch/x86/kernel/cpu/sgx/virt.c