KVM: x86: Add missing inline tag to kvm_read_and_reset_pf_reason
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Oct 2010 16:34:54 +0000 (18:34 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:23:27 +0000 (11:23 +0200)
May otherwise generates build warnings about unused
kvm_read_and_reset_pf_reason if included without CONFIG_KVM_GUEST
enabled.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_para.h

index d3a1a4805ab847ebfc09846fec60ca0c3134d4a4..a427bf77a93d8cf0d6892e04d9b32cd886f53c82 100644 (file)
@@ -182,7 +182,7 @@ u32 kvm_read_and_reset_pf_reason(void);
 #define kvm_guest_init() do { } while (0)
 #define kvm_async_pf_task_wait(T) do {} while(0)
 #define kvm_async_pf_task_wake(T) do {} while(0)
-static u32 kvm_read_and_reset_pf_reason(void)
+static inline u32 kvm_read_and_reset_pf_reason(void)
 {
        return 0;
 }