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-devel

[Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:37 +0200
Delivery-date: Thu, 19 May 2011 12:24:34 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832114; l=1111; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=tAYETTsQt0YIuEGFo1K3GXYqwbI=; b=GMn+3MgqBt0nBLthMdv1uY84E3YLty2V0mgbdVLbf4e9cQirLohatqjfbAqaPcYJ9n6 kU0+/miV4+bpBCA8bkSq68zaBKPfXmUTzpS+TUgTIIU9SlvCK1sa/YhPP8nf3zPpA9l7G jMpTjWks2iuem1BtPsyh4vuVDBo2BJldV4Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824402 -7200
# Node ID 982cc1330a16cc27e3c1f16b4ee9874340ec01ed
# Parent  0ef116beb380f5a8f2bef7825c0f5f450520e923
gcc-4.6 compile fix: xen/common/cpupool.c

cpupool.c: In function 'cpupool_add_domain':
cpupool.c:359:9: error: variable 'n_dom' set but not used 
[-Werror=unused-but-set-variable]
cpupool.c: In function 'cpupool_rm_domain':
cpupool.c:384:9: error: variable 'n_dom' set but not used 
[-Werror=unused-but-set-variable]
cpupool.c:383:9: error: variable 'cpupool_id' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 0ef116beb380 -r 982cc1330a16 xen/common/cpupool.c
--- a/xen/common/cpupool.c      Thu May 19 19:00:00 2011 +0200
+++ b/xen/common/cpupool.c      Thu May 19 19:00:02 2011 +0200
@@ -35,7 +35,7 @@ static DEFINE_SPINLOCK(cpupool_lock);
 
 DEFINE_PER_CPU(struct cpupool *, cpupool);
 
-#define cpupool_dprintk(x...) ((void)0)
+#define cpupool_dprintk(fmt, args...) { if (0) printk(fmt, ##args); }
 
 static struct cpupool *alloc_cpupool_struct(void)
 {

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

<Prev in Thread] Current Thread [Next in Thread>