From: Seung-Woo Kim Date: Tue, 2 Jan 2018 06:38:58 +0000 (+0900) Subject: gpio: remove build warnings caused by sprd bsp X-Git-Tag: submit/tizen/20180104.063507~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e8ad9c0cde15c9af2a14f4aab6b6b844fdecd4f;p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git gpio: remove build warnings caused by sprd bsp Remove build warnings caused by sprd bsp. Change-Id: I0c64253caec188267a13dc9e24cbfd489085d746 Signed-off-by: Seung-Woo Kim --- 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