Commit 0aaaa028 authored by viro@ZenIV.linux.org.uk's avatar viro@ZenIV.linux.org.uk Committed by Linus Torvalds

[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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fe08ac31
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#define __KERNEL_SYSCALLS__ #define __KERNEL_SYSCALLS__
static int errno;
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kthread.h> #include <linux/kthread.h>
...@@ -13,8 +14,6 @@ ...@@ -13,8 +14,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/oplib.h> #include <asm/oplib.h>
#include <asm/ebus.h> #include <asm/ebus.h>
static int errno;
#include <asm/unistd.h>
#include "bbc_i2c.h" #include "bbc_i2c.h"
#include "max1617.h" #include "max1617.h"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#define __KERNEL_SYSCALLS__ #define __KERNEL_SYSCALLS__
static int errno;
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -38,9 +39,6 @@ ...@@ -38,9 +39,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/envctrl.h> #include <asm/envctrl.h>
static int errno;
#include <asm/unistd.h>
#define ENVCTRL_MINOR 162 #define ENVCTRL_MINOR 162
#define PCF8584_ADDRESS 0x55 #define PCF8584_ADDRESS 0x55
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment