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 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:45 +0200
Delivery-date: Thu, 19 May 2011 12:31:29 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832189; l=1222; 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=bMOWm1kGFcInlEFnWnX/gRsOUgU=; b=qk/Sgh7J2XY22Tz9k9bj3n4e/6qhiP1XAyafsSXFVv+mo9XGWSztBlHfhAHeHeifd+w xsaSOkwpgQIaRxB4mSM+Y4k6hAyvtt7aYJRtu8+RclPUhekGlozCvuClR4NxDDQPjC58K WQvhp5N9vvkwz4nZFy89D7pjrcmkmHehdbY=
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 1305824411 -7200
# Node ID c8f5b4743f9a91dc1e879d35f8f2d4b981f0963d
# Parent  a7329b4e30a3c5db1ec52c9d331f13187927d3bb
gcc-4.6 compile fix: xen/arch/x86/time.c

time.c: In function 'local_time_calibration':
time.c:1007:14: error: variable 'prev_local_stime' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r a7329b4e30a3 -r c8f5b4743f9a xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Thu May 19 19:00:10 2011 +0200
+++ b/xen/arch/x86/time.c       Thu May 19 19:00:11 2011 +0200
@@ -1052,14 +1052,15 @@ static void local_time_calibration(void)
     curr_master_stime = c->stime_master_stamp;
     local_irq_enable();
 
-#if 0
+    if ( 0 )
+    {
     printk("PRE%d: tsc=%"PRIu64" stime=%"PRIu64" master=%"PRIu64"\n",
            smp_processor_id(), prev_tsc, prev_local_stime, prev_master_stime);
     printk("CUR%d: tsc=%"PRIu64" stime=%"PRIu64" master=%"PRIu64
            " -> %"PRId64"\n",
            smp_processor_id(), curr_tsc, curr_local_stime, curr_master_stime,
            curr_master_stime - curr_local_stime);
-#endif
+    }
 
     /* Local time warps forward if it lags behind master time. */
     if ( curr_local_stime < curr_master_stime )

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

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