From: Mathieu Chouquet-Stringer <mchouque@free.fr>
To: sparclinux@vger.kernel.org
Subject: [PATCH] Remove errno declaration in drivers/sbus/char/envctrl.c
Date: Thu, 04 Aug 2005 13:48:03 +0000 [thread overview]
Message-ID: <20050804134803.GA32109@localhost> (raw)
errno is already declarded in linux/errno.h:
drivers/sbus/char/envctrl.c:40: error: static declaration of 'errno' follows non-static declaration
include/linux/unistd.h:4: error: previous declaration of 'errno' was here
make[3]: *** [drivers/sbus/char/envctrl.o] Error 1
make[2]: *** [drivers/sbus/char] Error 2
make[1]: *** [drivers/sbus] Error 2
make: *** [drivers] Error 2
Moreover errno isn't used in this file at all so the following patch
(against latest git tree) just removes it (kernel compiles fine).
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-04 09:13:48.000000000 -0400
@@ -37,7 +37,6 @@
#include <asm/uaccess.h>
#include <asm/envctrl.h>
-static int errno;
#include <asm/unistd.h>
#define ENVCTRL_MINOR 162
next reply other threads:[~2005-08-04 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 13:48 Mathieu Chouquet-Stringer [this message]
2005-08-04 14:12 ` [PATCH] Remove errno declaration in drivers/sbus/char/envctrl.c David S. Miller
2005-08-04 14:24 ` Mathieu Chouquet-Stringer
2005-08-06 4:39 ` Mathieu Chouquet-Stringer
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=20050804134803.GA32109@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.