diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-10-20 12:34:54 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:23:27 -0500 |
commit | d4c90b0043bdb40a6f340d34b2ac1861040de88c (patch) | |
tree | 34c5d8e26913ae53831d0a6a47bb83bf1bc3a08f /arch | |
parent | f56f5369561ccafe0d4a2396179f814454a1571c (diff) |
KVM: x86: Add missing inline tag to kvm_read_and_reset_pf_reason
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/kvm_para.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index d3a1a4805ab8..a427bf77a93d 100644 --- a/arch/x86/include/asm/kvm_para.h +++ b/arch/x86/include/asm/kvm_para.h | |||
@@ -182,7 +182,7 @@ u32 kvm_read_and_reset_pf_reason(void); | |||
182 | #define kvm_guest_init() do { } while (0) | 182 | #define kvm_guest_init() do { } while (0) |
183 | #define kvm_async_pf_task_wait(T) do {} while(0) | 183 | #define kvm_async_pf_task_wait(T) do {} while(0) |
184 | #define kvm_async_pf_task_wake(T) do {} while(0) | 184 | #define kvm_async_pf_task_wake(T) do {} while(0) |
185 | static u32 kvm_read_and_reset_pf_reason(void) | 185 | static inline u32 kvm_read_and_reset_pf_reason(void) |
186 | { | 186 | { |
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |