KVM: SVM: Make symbol 'svm_gp_erratum_intercept' static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Feb 2021 07:59:58 +0000 (07:59 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Feb 2021 13:02:08 +0000 (08:02 -0500)
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>
arch/x86/kvm/svm/svm.c

index 42d4710074a6156fcfd0b2595e3b45715575b011..adb3619a3c1696e9ece09971f5c4b77b34ebfe11 100644 (file)
@@ -201,7 +201,7 @@ module_param(sev_es, int, 0444);
 bool __read_mostly dump_invalid_vmcb;
 module_param(dump_invalid_vmcb, bool, 0644);
 
-bool svm_gp_erratum_intercept = true;
+static bool svm_gp_erratum_intercept = true;
 
 static u8 rsm_ins_bytes[] = "\x0f\xaa";