Skip to content

Commit

Permalink
x86/sgx: Mark sgx_vepc_vm_ops static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wei Yongjun authored and Borislav Petkov committed Apr 12, 2021
1 parent ae40aaf commit 523caed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/sgx/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static vm_fault_t sgx_vepc_fault(struct vm_fault *vmf)
return VM_FAULT_SIGBUS;
}

const struct vm_operations_struct sgx_vepc_vm_ops = {
static const struct vm_operations_struct sgx_vepc_vm_ops = {
.fault = sgx_vepc_fault,
};

Expand Down

0 comments on commit 523caed

Please sign in to comment.