* [patch 2.6.26-rc3] gpio: build fixes (mostly potential)
@ 2008-05-20 23:17 David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2008-05-20 23:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: Uwe Kleine-König, Russell King, lkml
This fixes various gpio-related build errors (mostly potential)
reported in part by Russell King and Uwe Kleine-König.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
Refreshed version -- should apply OK on top of the gpio sysfs support
include/asm-generic/gpio.h | 6 +++++-
include/linux/gpio.h | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
--- a/include/asm-generic/gpio.h 2008-05-20 11:46:13.000000000 -0700
+++ b/include/asm-generic/gpio.h 2008-05-20 11:47:46.000000000 -0700
@@ -1,8 +1,12 @@
#ifndef _ASM_GENERIC_GPIO_H
#define _ASM_GENERIC_GPIO_H
+#include <linux/types.h>
+
#ifdef CONFIG_HAVE_GPIO_LIB
+#include <linux/compiler.h>
+
/* Platforms may implement their GPIO interface with library code,
* at a small performance cost for non-inlined operations and some
* extra memory (for code and for per-GPIO table entries).
@@ -78,7 +82,7 @@ struct gpio_chip {
extern const char *gpiochip_is_requested(struct gpio_chip *chip,
unsigned offset);
-extern int __init __must_check gpiochip_reserve(int start, int ngpio);
+extern int __must_check gpiochip_reserve(int start, int ngpio);
/* add/remove chips */
extern int gpiochip_add(struct gpio_chip *chip);
--- a/include/linux/gpio.h 2008-05-20 11:46:13.000000000 -0700
+++ b/include/linux/gpio.h 2008-05-20 11:47:09.000000000 -0700
@@ -8,6 +8,9 @@
#else
+#include <linux/types.h>
+#include <linux/errno.h>
+
/*
* Some platforms don't support the GPIO programming interface.
*
^ permalink raw reply [flat|nested] 2+ messages in thread* [patch 2.6.26-rc3] gpio: build fixes (mostly potential)
@ 2008-05-19 22:50 David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2008-05-19 22:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: Uwe Kleine-König, Russell King, lkml
This fixes various gpio-related build errors (mostly potential)
reported by Russell King and Uwe Kleine-König.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
include/asm-generic/gpio.h | 4 +++-
include/linux/gpio.h | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
--- a/include/asm-generic/gpio.h 2008-05-19 14:59:51.000000000 -0700
+++ b/include/asm-generic/gpio.h 2008-05-19 15:05:18.000000000 -0700
@@ -3,6 +3,8 @@
#ifdef CONFIG_HAVE_GPIO_LIB
+#include <linux/compiler.h>
+
/* Platforms may implement their GPIO interface with library code,
* at a small performance cost for non-inlined operations and some
* extra memory (for code and for per-GPIO table entries).
@@ -74,7 +76,7 @@ struct gpio_chip {
extern const char *gpiochip_is_requested(struct gpio_chip *chip,
unsigned offset);
-extern int __init __must_check gpiochip_reserve(int start, int ngpio);
+extern int __must_check gpiochip_reserve(int start, int ngpio);
/* add/remove chips */
extern int gpiochip_add(struct gpio_chip *chip);
--- a/include/linux/gpio.h 2008-05-19 15:05:34.000000000 -0700
+++ b/include/linux/gpio.h 2008-05-19 15:06:54.000000000 -0700
@@ -8,6 +8,8 @@
#else
+#include <linux/errno.h>
+
/*
* Some platforms don't support the GPIO programming interface.
*
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-21 0:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 23:17 [patch 2.6.26-rc3] gpio: build fixes (mostly potential) David Brownell
-- strict thread matches above, loose matches on Subject: below --
2008-05-19 22:50 David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox