gpio: build fixes (mostly potential)
Subsystems (2)
PATCH 1/1 gpio: build fixes (mostly potential)
This fixes various gpio-related build errors (mostly potential) reported by Russell King and Uwe Kleine-König.
Signed-off-by David Brownell <[email protected]>
--- include/asm-generic/gpio.h | 4 +++- include/linux/gpio.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-)
include/asm-generic/gpio.h +3 -1
@@ -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);
include/linux/gpio.h +2 -0
@@ -8,6 +8,8 @@#else +#include <linux/errno.h> +/* * Some platforms don't support the GPIO programming interface. *