mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] asm-generic/gpio.h must #include <linux/errno.h>
@ 2008-07-28 15:27 Adrian Bunk
  2008-07-28 18:07 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-07-28 15:27 UTC (permalink / raw)
  To: David Brownell; +Cc: Andrew Morton, linux-kernel

This patch fixes the following build error:

<--  snip  -->

...
  CC      arch/mips/kernel/gpio_txx9.o
In file included from 
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-mips/mach-generic/gpio.h:19,
                 from include2/asm/gpio.h:4,
                 from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/gpio.h:7,
                 from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/mips/kernel/gpio_txx9.c:13:
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/gpio.h: In function 'gpio_export':
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/gpio.h:163: error: 'ENOSYS' undeclared (first use in this function)
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/gpio.h:163: error: (Each undeclared identifier is reported only once
/home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/gpio.h:163: error: for each function it appears in.)
make[2]: *** [arch/mips/kernel/gpio_txx9.o] Error 1

<--  snip  -->

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
ae0b61bdf413151d7587e9488c8e60dd3ff8f20d 
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index c764a8f..0f99ad3 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -2,6 +2,7 @@
 #define _ASM_GENERIC_GPIO_H
 
 #include <linux/types.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_GPIOLIB
 


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

end of thread, other threads:[~2008-07-28 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 15:27 [2.6 patch] asm-generic/gpio.h must #include <linux/errno.h> Adrian Bunk
2008-07-28 18:07 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®