History

gpio: build fixes

This fixes various gpio-related build errors (mostly potential) reported in part by Russell King and Uwe Kleine-König.

David Brownell committed 18 years ago

Commit 6ea02051 parent ee294202 files · +8 −1Browse files

Unified · Split

2 files
  1. include/asm-generic/gpio.h +5 −1
  2. include/linux/gpio.h +3 −0
include/asm-generic/gpio.h+5−1
@@ -1,8 +1,12 @@
11 #ifndef _ASM_GENERIC_GPIO_H
22 #define _ASM_GENERIC_GPIO_H
33
4+#include <linux/types.h>
5+
46 #ifdef CONFIG_HAVE_GPIO_LIB
57
8+#include <linux/compiler.h>
9+
610 /* Platforms may implement their GPIO interface with library code,
711 * at a small performance cost for non-inlined operations and some
812 * extra memory (for code and for per-GPIO table entries).
@@ -74,7 +78,7 @@ struct gpio_chip { · 65 unmodified lines
7478
7579 extern const char *gpiochip_is_requested(struct gpio_chip *chip,
7680 unsigned offset);
77−extern int __init __must_check gpiochip_reserve(int start, int ngpio);
81+extern int __must_check gpiochip_reserve(int start, int ngpio);
7882
7983 /* add/remove chips */
8084 extern int gpiochip_add(struct gpio_chip *chip);
include/linux/gpio.h+3−0
@@ -8,6 +8,9 @@ · 7 unmodified lines
88
99 #else
1010
11+#include <linux/types.h>
12+#include <linux/errno.h>
13+
1114 /*
1215 * Some platforms don't support the GPIO programming interface.
1316 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t