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

[Xen-devel] [PATCH 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:45 +0200
  • Delivery-date: Thu, 19 May 2011 12:31:29 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# 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


 


Rackspace

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