Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: SVM: Make symbol 'svm_gp_erratum_intercept' static

The sparse tool complains as follows:

arch/x86/kvm/svm/svm.c:204:6: warning:
symbol 'svm_gp_erratum_intercept' was not declared. Should it be static?

This symbol is not used outside of svm.c, so this
commit marks it static.

Fixes: 82a11e9c6fa2b ("KVM: SVM: Add emulation support for #GP triggered by SVM instructions")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Message-Id: <20210210075958.1096317-1-weiyongjun1@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Wei Yongjun and committed by
Paolo Bonzini
2e215216 67ccd527

+1 -1
+1 -1
arch/x86/kvm/svm/svm.c
··· 201 201 bool __read_mostly dump_invalid_vmcb; 202 202 module_param(dump_invalid_vmcb, bool, 0644); 203 203 204 - bool svm_gp_erratum_intercept = true; 204 + static bool svm_gp_erratum_intercept = true; 205 205 206 206 static u8 rsm_ins_bytes[] = "\x0f\xaa"; 207 207