lkml.org 
[lkml]   [2001]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.4.5 gcc3 build patch
We fixed a bug in cv-qualification checking.

timer.c:35: conflicting types for `xtime'
include/linux/sched.h:540: previous declaration of `xtime'

There's no need for the volatile qualification here. One, being a
struct it doesn't do any good, and two it's protected by xtime_lock.


r~


--- kernel/timer.c.orig Tue Jun 12 16:22:27 2001
+++ kernel/timer.c Tue Jun 12 16:24:06 2001
@@ -32,7 +32,7 @@
long tick = (1000000 + HZ/2) / HZ; /* timer interrupt period */

/* The current time */
-volatile struct timeval xtime __attribute__ ((aligned (16)));
+struct timeval xtime __attribute__ ((aligned (16)));

/* Don't completely fail for HZ > 500. */
int tickadj = 500/HZ ? : 1; /* microsecs */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.034 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site