All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove errno declaration in drivers/sbus/char/envctrl.c
@ 2005-08-04 13:48 Mathieu Chouquet-Stringer
  2005-08-04 14:12 ` David S. Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mathieu Chouquet-Stringer @ 2005-08-04 13:48 UTC (permalink / raw)
  To: sparclinux

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-06 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-08-06 13:40 ` David S. Miller

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.