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.
*
--
| Ian Campbell | Re: [PATCH] x86: Construct 32 bit boot time page tables in native format. |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Justin Piszcz | Linux Software RAID 5 Performance Optimizations: 2.6.19.1: (211MB/s read & 195... |
| Alan | Re: [RFC] Heads up on sys_fallocate() |
| Matthias Scheler | Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current |
| David Laight | long usernames |
| Quentin Garnier | Re: Understanding foo_open, foo_read, etc. |
| Jared D. McNeill | Breaking binary compatibility for /dev/joy |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
