* (PATCH) small fix for building with new gcc
@ 2001-12-03 22:46 Filip Kalinski
0 siblings, 0 replies; only message in thread
From: Filip Kalinski @ 2001-12-03 22:46 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 649 bytes --]
This patch fixes problem with compiling the kernel with gcc 3.x.
It does not like that xtime is defined differently in linux/sched.h
(as "volatile"), and doesn't want to proceed.
Filip Kaliñski <filon@pld.org.pl>
--- linux-vanilla/kernel/timer.c Sun Nov 4 16:27:47 2001
+++ linux-modfied/kernel/timer.c Fri Nov 23 23:58:34 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-12-04 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03 22:46 (PATCH) small fix for building with new gcc Filip Kalinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®