Hello list. I have this annoying problem on Linux 2.2.20pre2 (exists in 2.2.22 too from what I can see). It happens when I try to compile any module that ultimately include <asm/page.h> (which is a link to /usr/src/linux/include/asm-sparc64/page.h) The 64-bit gcc I use (egcs-2.92.11) stops with the following error: In file included from /usr/include/linux/sched.h:18, from /usr/include/linux/mm.h:4, from /usr/include/linux/slab.h:14, from /usr/include/linux/malloc.h:4, from /usr/include/linux/proc_fs:5, from procfs.c:9: /usr/include/asm/page.h:96: global register variable follows a function definition /usr/include/asm/page.h:96: warning: call-clobbered register used for global register variable In these parts, <asm/page.h> contains: #ifndef __ASSEMBLY__ /* Do prdele, look what happens to be in %g4... */ register unsigned long page_offset asm("g4"); /* This is line no. 96. */ #define PAGE_OFFSET page_offset #else #define PAGE_OFFSET 0xFFFFF80000000000 #endif My compilation command-line is: egcs64 -D__KERNEL__ -DMODULE -D__SMP__ -O -c -o module.o module.c I also get another error, which I think is irrelevant (but you never know): In file included from /usr/include/linux/sched.h:16, from /usr/include/linux/mm.h:4, from /usr/include/linux/slab.h:14, from /usr/include/linux/malloc.h:4, from /usr/include/linux/proc_fs.h:5, from procfs.c:9: /usr/include/asm/system.h:25: warning: `sparc_cpu_model' redefined /usr/include/linux/modules/sparc_ksyms.ver:2: warning: this is the location of the previous definition Any help would be appreciated. Oh, I'm still not sure if this is the place for elementary questions like this. If not, please point me to the correct direction and avoid the flames :-) . Alexandros. -- Al. Andreou <ee4299@ee.teiath.gr> | http://nemesis.ee.teiath.gr/~ee4299/ This is not a self-referential signature. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/