kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: Fix a build error
@ 2010-03-20 17:17 Amos Kong
  2010-03-21 14:34 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Amos Kong @ 2010-03-20 17:17 UTC (permalink / raw)
  To: avi; +Cc: kvm, kongjianjun, Amos Kong

arch/x86/kvm/x86.c: In function ‘emulator_cmpxchg_emulated’:
arch/x86/kvm/x86.c:3367: error: ‘u’ undeclared (first use in this function)
arch/x86/kvm/x86.c:3367: error: (Each undeclared identifier is reported only once
arch/x86/kvm/x86.c:3367: error: for each function it appears in.)
arch/x86/kvm/x86.c:3367: error: expected expression before ‘)’ token

Signed-off-by: Amos Kong <akong@redhat.com>
---
 arch/x86/kvm/x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index bb9a24a..097ad3a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3322,7 +3322,7 @@ EXPORT_SYMBOL_GPL(emulator_write_emulated);
 #  define CMPXCHG64(ptr, old, new) CMPXCHG_TYPE(u64, ptr, old, new)
 #else
 #  define CMPXCHG64(ptr, old, new) \
-	(cmpxchg64((u64 *)(ptr), *(u64 *)(old), *(u *)(new)) == *(u64 *)(old))
+	(cmpxchg64((u64 *)(ptr), *(u64 *)(old), *(u64 *)(new)) == *(u64 *)(old))
 #endif
 
 static int emulator_cmpxchg_emulated(unsigned long addr,
-- 
1.6.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: Fix a build error
  2010-03-20 17:17 [PATCH] KVM: Fix a build error Amos Kong
@ 2010-03-21 14:34 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-03-21 14:34 UTC (permalink / raw)
  To: Amos Kong; +Cc: kvm, kongjianjun

On 03/20/2010 07:17 PM, Amos Kong wrote:
> arch/x86/kvm/x86.c: In function ‘emulator_cmpxchg_emulated’:
> arch/x86/kvm/x86.c:3367: error: ‘u’ undeclared (first use in this function)
> arch/x86/kvm/x86.c:3367: error: (Each undeclared identifier is reported only once
> arch/x86/kvm/x86.c:3367: error: for each function it appears in.)
> arch/x86/kvm/x86.c:3367: error: expected expression before ‘)’ token
>    

Thanks, just applied same patch from Jan.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-21 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-20 17:17 [PATCH] KVM: Fix a build error Amos Kong
2010-03-21 14:34 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).