[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xen: adjust cpumask initializers to suit clang's incomplete gccisms.



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1299496871 0
# Node ID e40fd03aef208fc11fb52cfc84f9a97dde3840c8
# Parent  da9295229f17fb4a8e2e5b0a05d2ab750762cacc
xen: adjust cpumask initializers to suit clang's incomplete gccisms.
This is needed to compile xen with clang.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Acked-by: Keir Fraser <keir@xxxxxxx>
---


diff -r da9295229f17 -r e40fd03aef20 xen/arch/x86/io_apic.c
--- a/xen/arch/x86/io_apic.c    Mon Mar 07 11:21:11 2011 +0000
+++ b/xen/arch/x86/io_apic.c    Mon Mar 07 11:21:11 2011 +0000
@@ -1907,6 +1907,7 @@
     int apic1, pin1, apic2, pin2;
     int vector, ret;
     unsigned long flags;
+    cpumask_t mask_all = CPU_MASK_ALL;
 
     local_irq_save(flags);
 
@@ -1917,7 +1918,7 @@
     vector = FIRST_HIPRIORITY_VECTOR;
     clear_irq_vector(0);
 
-    if ((ret = bind_irq_vector(0, vector, (cpumask_t)CPU_MASK_ALL)))
+    if ((ret = bind_irq_vector(0, vector, mask_all)))
         printk(KERN_ERR"..IRQ0 is not set correctly with ioapic!!!, err:%d\n", 
ret);
     
     irq_desc[0].depth  = 0;
diff -r da9295229f17 -r e40fd03aef20 xen/include/xen/cpumask.h
--- a/xen/include/xen/cpumask.h Mon Mar 07 11:21:11 2011 +0000
+++ b/xen/include/xen/cpumask.h Mon Mar 07 11:21:11 2011 +0000
@@ -296,7 +296,7 @@
 
 #define CPU_MASK_NONE                                                  \
 /*(cpumask_t)*/ { {                                                    \
-       [0 ... BITS_TO_LONGS(NR_CPUS)-1] =  0UL                         \
+       0UL                                                             \
 } }
 
 #define CPU_MASK_CPU0                                                  \

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.