WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xen: adjust cpumask initializers to suit

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen: adjust cpumask initializers to suit clang's incomplete gccisms.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 10 Mar 2011 22:20:09 +0000
Delivery-date: Thu, 10 Mar 2011 14:20:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xen: adjust cpumask initializers to suit clang's incomplete gccisms., Xen patchbot-unstable <=