All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: mark the function 'inline' defined in .h file
@ 2010-10-22  8:50 Xiao Guangrong
  0 siblings, 0 replies; only message in thread
From: Xiao Guangrong @ 2010-10-22  8:50 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, LKML, KVM

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@cn.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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-22  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22  8:50 [PATCH] KVM: mark the function 'inline' defined in .h file Xiao Guangrong

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.