From 1e8ad9c0cde15c9af2a14f4aab6b6b844fdecd4f Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Tue, 2 Jan 2018 15:38:58 +0900 Subject: [PATCH] gpio: remove build warnings caused by sprd bsp Remove build warnings caused by sprd bsp. Change-Id: I0c64253caec188267a13dc9e24cbfd489085d746 Signed-off-by: Seung-Woo Kim --- include/asm-generic/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 3d22357..70d481d 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -28,12 +28,13 @@ * platform data and other tables. */ -static bool gpio_is_valid(int number) +static inline bool gpio_is_valid(int number) { return number >= 0 && number < ARCH_NR_GPIOS; } struct gpio; +struct seq_file; /** * struct gpio_chip - abstract a GPIO controller -- 2.7.4