2.4.5 gcc3 build patch

Richard Henderson (rth@redhat.com)
Tue, 12 Jun 2001 16:27:33 -0700


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/