[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4CC15051.3030207@cn.fujitsu.com>
Date: Fri, 22 Oct 2010 16:50:25 +0800
From: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
To: Avi Kivity <avi@...hat.com>
CC: Marcelo Tosatti <mtosatti@...hat.com>,
LKML <linux-kernel@...r.kernel.org>, KVM <kvm@...r.kernel.org>
Subject: [PATCH] KVM: mark the function 'inline' defined in .h file
fix:
arch/x86/include/asm/kvm_para.h:185: warning: ‘kvm_read_and_reset_pf_reason’ defined but not used
CC [M] arch/x86/kvm/x86.o
arch/x86/include/asm/kvm_para.h:185: warning: ‘kvm_read_and_reset_pf_reason’ defined but not used
CC [M] arch/x86/kvm/mmu.o
arch/x86/include/asm/kvm_para.h:185: warning: ‘kvm_read_and_reset_pf_reason’ defined but not used
CC [M] arch/x86/kvm/emulate.o
Signed-off-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
---
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 d3a1a48..a427bf7 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);
#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;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists