[PATCH] Debian's gcc-3.0-20010609 refuses to compile kernel :-(

From: Petr Vandrovec (vandrove@vc.cvut.cz)
Date: Mon Jun 11 2001 - 15:42:42 EST


Hi Alan,
  latest gcc-3.0 snapshot in Debian just decided that:

extern struct timeval xtime; /* linux/sched.h */
volatile struct timeval xtime; /* kernel/timer.c */

is incorrect - which is probably correct idea. So please apply
following patch. As 'jiffies' variable uses extern + volatile,
there is already precedent for doing this. Patch was generated
from 2.4.5-ac13.
                                        Thanks,
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz

diff -urdN linux/include/linux/sched.h linux/include/linux/sched.h
--- linux/include/linux/sched.h Mon Jun 11 19:41:46 2001
+++ linux/include/linux/sched.h Mon Jun 11 20:20:35 2001
@@ -539,7 +539,7 @@
 extern unsigned long volatile jiffies;
 extern unsigned long itimer_ticks;
 extern unsigned long itimer_next;
-extern struct timeval xtime;
+extern volatile struct timeval xtime;
 extern void do_timer(struct pt_regs *);
 
 extern unsigned int * prof_buffer;
-
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/



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:14 EST