Thread (4 messages) 4 messages, 4 authors, 2013-06-17
STALE4763d REVIEWED: 1 (0M)

[PATCH] gpio/omap: omap_gpio_init_context stub must be inline

From: Santosh Shilimkar <hidden>
Date: 2013-06-05 16:04:27
Also in: linux-omap

On Friday 31 May 2013 11:59 AM, Arnd Bergmann wrote:
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: Santosh Shilimkar <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help