提交 d4c90b00 编写于 作者: J Jan Kiszka 提交者: Avi Kivity

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: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
上级 f56f5369
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册