]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm: fix a missing-prototypes "vmread_error"
authorQian Cai <cai@lca.pw>
Thu, 2 Apr 2020 15:39:55 +0000 (11:39 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Apr 2020 19:17:45 +0000 (15:17 -0400)
commit64f5f29a2916cc5facfbfc7e4480328665969b00
tree1fb68fc07e70c65c7daaf047e8a27ce4be841fa5
parent6cb771c6c61f09ab3fe02064395bb0337eaadee1
x86/kvm: fix a missing-prototypes "vmread_error"

The commit db2b7ae5bbfe ("KVM: VMX: Add a trampoline to fix VMREAD error
handling") removed the declaration of vmread_error() causes a W=1 build
failure with KVM_WERROR=y. Fix it by adding it back.

arch/x86/kvm/vmx/vmx.c:359:17: error: no previous prototype for 'vmread_error' [-Werror=missing-prototypes]
 asmlinkage void vmread_error(unsigned long field, bool fault)
                 ^~~~~~~~~~~~

Signed-off-by: Qian Cai <cai@lca.pw>
Message-Id: <20200402153955.1695-1-cai@lca.pw>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/ops.h