diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-25 04:35:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-25 04:35:08 +0200 |
commit | 4b502421aac89c8d4e61ecc89a70065a33305a0b (patch) | |
tree | 81f1a6f285623e2eb6393cd0dc7dce50bbf6448e /drivers/sbus/char/bbc_envctrl.c | |
parent | [SPARC]: sbus/vfc_i2c: remove sleep_on() usage (diff) | |
download | linux-4b502421aac89c8d4e61ecc89a70065a33305a0b.tar.xz linux-4b502421aac89c8d4e61ecc89a70065a33305a0b.zip |
[SPARC]: Fix __KERNEL_SYSCALLS__ defining in envctrl.c and bbc_envctrl.c
It needs to happen before any header includes because nowadays
some things implicitly include asm/unistd.h which ends up being
before the __KERNEL_SYSCALLS__ define gets done.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index d5259f7fee6d..b8a2c7353b0a 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c @@ -4,13 +4,14 @@ * Copyright (C) 2001 David S. Miller (davem@redhat.com) */ +#define __KERNEL_SYSCALLS__ + #include <linux/kernel.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/delay.h> #include <asm/oplib.h> #include <asm/ebus.h> -#define __KERNEL_SYSCALLS__ static int errno; #include <asm/unistd.h> |