Re: Linux 2.4.10-ac1

Wayne Whitney (whitney@math.berkeley.edu)
Sun, 30 Sep 2001 19:18:54 -0700


Hello,

gcc 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3) complains about
conflicting definitions of xtime in 2.4.10-ac1:

kernel/timer.c: struct timeval xtime __attribute__ ((aligned (16)));
include/linux/sched.h: extern volatile struct timeval xtime;

So I used the trivial patch below to get it to compile, I'm no C
expert so I don't know if I chose the correct definition. Hopefully
my mailer won't screw up the whitespace.

Cheers, Wayne

--- linux-2.4.10-ac1/kernel/timer.c.orig Sun Sep 30 19:01:12 2001
+++ linux-2.4.10-ac1/kernel/timer.c Sun Sep 30 19:06:29 2001
@@ -32,7 +32,7 @@
long tick = (1000000 + HZ/2) / HZ; /* timer interrupt period */

/* The current time */
-struct timeval xtime __attribute__ ((aligned (16)));
+volatile 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/