Skip to content

Commit

Permalink
[PATCH] envctrl fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
viro@ZenIV.linux.org.uk authored and Linus Torvalds committed Sep 10, 2005
1 parent fe08ac3 commit 0aaaa02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions drivers/sbus/char/bbc_envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#define __KERNEL_SYSCALLS__
static int errno;

#include <linux/kernel.h>
#include <linux/kthread.h>
Expand All @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions drivers/sbus/char/envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

#define __KERNEL_SYSCALLS__
static int errno;

#include <linux/config.h>
#include <linux/module.h>
Expand All @@ -38,9 +39,6 @@
#include <asm/uaccess.h>
#include <asm/envctrl.h>

static int errno;
#include <asm/unistd.h>

#define ENVCTRL_MINOR 162

#define PCF8584_ADDRESS 0x55
Expand Down

0 comments on commit 0aaaa02

Please sign in to comment.