summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bbc_envctrl.c
diff options
context:
space:
mode:
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>2005-09-09 23:09:08 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 19:16:27 +0200
commit0aaaa028297a0e2aed9671419a11d8e17510cb51 (patch)
tree0588fcac9a57c14a244d5efe32211d25e903b864 /drivers/sbus/char/bbc_envctrl.c
parent[PATCH] __user annotations (scsi/ch) (diff)
downloadlinux-0aaaa028297a0e2aed9671419a11d8e17510cb51.tar.xz
linux-0aaaa028297a0e2aed9671419a11d8e17510cb51.zip
[PATCH] envctrl fixes
envctrl doesn't need unistd.h; moreover, since it declares errno static gcc4 gets very unhappy about including unistd.h. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r--drivers/sbus/char/bbc_envctrl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c
index d44205d52bf3..d89f83f769f5 100644
--- a/drivers/sbus/char/bbc_envctrl.c
+++ b/drivers/sbus/char/bbc_envctrl.c
@@ -5,6 +5,7 @@
*/
#define __KERNEL_SYSCALLS__
+static int errno;
#include <linux/kernel.h>
#include <linux/kthread.h>
@@ -13,8 +14,6 @@
#include <linux/delay.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
-static int errno;
-#include <asm/unistd.h>
#include "bbc_i2c.h"
#include "max1617.h"