[kvm-devel] [PATCH] qemu: use ARRAY_SIZE macro as provided by osdep.h

2008-03-28 Thread Carlo Marcelo Arenas Belon
included through "qemu-kvm.h" -> "cpu.h" -> "cpu-defs.h" for all architectures
and resulting otherwise in :

  qemu/qemu-kvm-x86.c:23:1: warning: "ARRAY_SIZE" redefined In file included 
from ../cpu-defs.h:30,
from qemu/target-i386/cpu.h:45,
from ../qemu-common.h:62,
from qemu/hw/hw.h:5,
from qemu/qemu-kvm-x86.c:13:
  ../osdep.h:30:1: warning: this is the location of the previous definition

Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]>
---
 qemu/qemu-kvm-x86.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/qemu/qemu-kvm-x86.c b/qemu/qemu-kvm-x86.c
index 78490c5..35fb535 100644
--- a/qemu/qemu-kvm-x86.c
+++ b/qemu/qemu-kvm-x86.c
@@ -20,8 +20,6 @@
 
 #define MSR_IA32_TSC   0x10
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
-
 static struct kvm_msr_list *kvm_msr_list;
 extern unsigned int kvm_shadow_memory;
 extern kvm_context_t kvm_context;
-- 
1.5.3.7


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [PATCH] qemu: use ARRAY_SIZE macro as provided by osdep.h

2008-03-30 Thread Avi Kivity
Carlo Marcelo Arenas Belon wrote:
> included through "qemu-kvm.h" -> "cpu.h" -> "cpu-defs.h" for all architectures
> and resulting otherwise in :
>
>   qemu/qemu-kvm-x86.c:23:1: warning: "ARRAY_SIZE" redefined In file included 
> from ../cpu-defs.h:30,
> from qemu/target-i386/cpu.h:45,
> from ../qemu-common.h:62,
> from qemu/hw/hw.h:5,
> from qemu/qemu-kvm-x86.c:13:
>   ../osdep.h:30:1: warning: this is the location of the previous definition
>
>   

Applied, thanks.

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


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel