From: Mathieu Chouquet-Stringer <mchouque@free.fr>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] Remove errno declaration in drivers/sbus/char/envctrl.c
Date: Sat, 06 Aug 2005 04:39:11 +0000 [thread overview]
Message-ID: <20050806043911.GA10647@localhost> (raw)
In-Reply-To: <20050804134803.GA32109@localhost>
On Thu, Aug 04, 2005 at 07:12:26AM -0700, David S. Miller wrote:
> [snip]
> Probably the best version of the fix would be to include
> linux/unistd.h instead of asm/unistd.h, so you might want
> to code that up and test it out.
Thanks for the feedback, what about the following then? It's compiled and
booted and I've realized than bbc_envctrl.c suffers from the same
thing, so here you go. Let me know if it makes sense...
Signed-off-by: Mathieu Chouquet-Stringer <mchouque@free.fr>
--- linux-2.6/drivers/sbus/char/envctrl.c 2005-07-25 20:28:43.000000000 -0400
+++ linux-2.6-mat/drivers/sbus/char/envctrl.c 2005-08-06 00:02:04.000000000 -0400
@@ -32,14 +32,12 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/kernel.h>
+#include <linux/unistd.h>
#include <asm/ebus.h>
#include <asm/uaccess.h>
#include <asm/envctrl.h>
-static int errno;
-#include <asm/unistd.h>
-
#define ENVCTRL_MINOR 162
#define PCF8584_ADDRESS 0x55
--- linux-2.6/drivers/sbus/char/bbc_envctrl.c 2005-07-25 20:28:43.000000000 -0400
+++ linux-2.6-mat/drivers/sbus/char/bbc_envctrl.c 2005-08-06 00:06:27.000000000 -0400
@@ -10,10 +10,9 @@
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/delay.h>
+#include <linux/unistd.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
-static int errno;
-#include <asm/unistd.h>
#include "bbc_i2c.h"
#include "max1617.h"
--
Mathieu Chouquet-Stringer E-Mail: mchouque@free.fr
next prev parent reply other threads:[~2005-08-06 4:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 13:48 [PATCH] Remove errno declaration in drivers/sbus/char/envctrl.c Mathieu Chouquet-Stringer
2005-08-04 14:12 ` David S. Miller
2005-08-04 14:24 ` Mathieu Chouquet-Stringer
2005-08-06 4:39 ` Mathieu Chouquet-Stringer [this message]
2005-08-06 13:40 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050806043911.GA10647@localhost \
--to=mchouque@free.fr \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.