lkml.org 
[lkml]   [2001]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux 2.4.10-ac1
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/
\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.085 / U:21.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site