]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29bce4c71fa6da11adb1e625e5e9fdbc3488e3c5
treedcbfed1a0fbdb83efaa10a95c530409370a1be9e
parentd29a53998cdb2209c9504ac8273a8d39effb1d6f
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: 99d9f6552bc0d ("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