* [PATCH -next] x86/kvm: fix a missing-prototypes "vmread_error"
@ 2020-04-02 15:39 Qian Cai
2020-04-02 19:23 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Qian Cai @ 2020-04-02 15:39 UTC (permalink / raw)
To: pbonzini; +Cc: sean.j.christopherson, kvm, linux-kernel, Qian Cai
The commit 842f4be95899 ("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>
---
arch/x86/kvm/vmx/ops.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kvm/vmx/ops.h b/arch/x86/kvm/vmx/ops.h
index 09b0937d56b1..19717d0a1100 100644
--- a/arch/x86/kvm/vmx/ops.h
+++ b/arch/x86/kvm/vmx/ops.h
@@ -12,6 +12,7 @@
#define __ex(x) __kvm_handle_fault_on_reboot(x)
+asmlinkage void vmread_error(unsigned long field, bool fault);
__attribute__((regparm(0))) void vmread_error_trampoline(unsigned long field,
bool fault);
void vmwrite_error(unsigned long field, unsigned long value);
--
2.21.0 (Apple Git-122.2)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] x86/kvm: fix a missing-prototypes "vmread_error"
2020-04-02 15:39 [PATCH -next] x86/kvm: fix a missing-prototypes "vmread_error" Qian Cai
@ 2020-04-02 19:23 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-04-02 19:23 UTC (permalink / raw)
To: Qian Cai; +Cc: sean.j.christopherson, kvm, linux-kernel
On 02/04/20 17:39, Qian Cai wrote:
> The commit 842f4be95899 ("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>
> ---
> arch/x86/kvm/vmx/ops.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/kvm/vmx/ops.h b/arch/x86/kvm/vmx/ops.h
> index 09b0937d56b1..19717d0a1100 100644
> --- a/arch/x86/kvm/vmx/ops.h
> +++ b/arch/x86/kvm/vmx/ops.h
> @@ -12,6 +12,7 @@
>
> #define __ex(x) __kvm_handle_fault_on_reboot(x)
>
> +asmlinkage void vmread_error(unsigned long field, bool fault);
> __attribute__((regparm(0))) void vmread_error_trampoline(unsigned long field,
> bool fault);
> void vmwrite_error(unsigned long field, unsigned long value);
>
Merged, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-02 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 15:39 [PATCH -next] x86/kvm: fix a missing-prototypes "vmread_error" Qian Cai
2020-04-02 19:23 ` Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.