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 21 of 45] gcc-4.6 compile fix: xen/common/sched_credi

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 21 of 45] gcc-4.6 compile fix: xen/common/sched_credit2.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:40 +0200
Delivery-date: Thu, 19 May 2011 12:27:07 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832142; l=1090; 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=4+5/nnfUx9eHZc8cT81qyghtZlg=; b=jZV5qSoOB1QVIMkei6a2m4leYpnQATg11UBic/Ai7tgd1S8T4WS22/GPxxc6J9B0uhW s/yzoV8asi3Iz+g+B0RgQq0nKOGMUK8n0v5JmTGAw/ENDbkeeAWTL4YfxDbWm2g8EdtGY 3GNvUvFy9dFzieSf8eYE1f8tf+OIvVlQeog=
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 1305824405 -7200
# Node ID 215451b4be8e001ccf816decb171ef0c50373de5
# Parent  3317bd7aa9150894d21538700702ddefc19a5b50
gcc-4.6 compile fix: xen/common/sched_credit2.c

sched_credit2.c: In function 'init_pcpu':
sched_credit2.c:1883:14: error: variable 'old_rqi' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 3317bd7aa915 -r 215451b4be8e xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c        Thu May 19 19:00:04 2011 +0200
+++ b/xen/common/sched_credit2.c        Thu May 19 19:00:05 2011 +0200
@@ -1880,7 +1880,7 @@ static void deactivate_runqueue(struct c
 
 static void init_pcpu(const struct scheduler *ops, int cpu)
 {
-    int rqi, old_rqi, flags;
+    int rqi, flags;
     struct csched_private *prv = CSCHED_PRIV(ops);
     struct csched_runqueue_data *rqd;
     spinlock_t *old_lock;
@@ -1894,8 +1894,6 @@ static void init_pcpu(const struct sched
         return;
     }
 
-    old_rqi = prv->runq_map[cpu];
-
     /* Figure out which runqueue to put it in */
     rqi = 0;
 

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

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