gpio/omap: omap_gpio_init_context stub must be inline
authorArnd Bergmann <arnd@arndb.de>
Fri, 31 May 2013 15:59:46 +0000 (17:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 06:26:40 +0000 (08:26 +0200)
The bug fix 352a2d5bf "gpio/omap: ensure gpio context is initialised"
has caused a new warning for omap1_defconfig:

drivers/gpio/gpio-omap.c:1465:13: warning: 'omap_gpio_init_context' defined but not used [-Wunused-function]
 static void omap_gpio_init_context(struct gpio_bank *p) {}
             ^

The solution is to mark the stub function as 'static inline' so
it gets left out of the build when unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c

index d3f7d2db870f985253a603f3f53f2b5475ee97f6..e5fba6576c7562e2753568ed5308f984adaa26a0 100644 (file)
@@ -1462,7 +1462,7 @@ static void omap_gpio_restore_context(struct gpio_bank *bank)
 #else
 #define omap_gpio_runtime_suspend NULL
 #define omap_gpio_runtime_resume NULL
-static void omap_gpio_init_context(struct gpio_bank *p) {}
+static inline void omap_gpio_init_context(struct gpio_bank *p) {}
 #endif
 
 static const struct dev_pm_ops gpio_pm_ops = {
This page took 0.025764 seconds and 5 git commands to generate.