ALPHA - compile error: linunx/mm.h =?ISO-8859-1?Q?won=B4t?= compile

Ronald Appelfelder (ronalda@take.net)
Sat, 15 Nov 1997 13:35:40 +0100


Hi, kernel hackers !

The following code won´t compile (test.c):

#include <linux/mm.h>
void main(void) {}

[begin output]
gcc -I/usr/src/linux/include -D__KERNEL__ -c test.c

In file included from /usr/src/linux/include/linux/sched.h:425,
from /usr/src/linux/include/linux/mm.h:4,
from test.c:1:
/usr/src/linux/include/asm/current.h:4: global register variable follows a function definition
/usr/src/linux/include/asm/current.h:4: warning: call-clobbered register used for global register variable
[end output]

kernel 2.1.63
alphaev5-linux-gnu (RedHat 4.9.1 Mustang)

Please check this out.

---
Ronald Appelfelder
ronalda@take.net