From: Arnd Bergmann Date: Fri, 31 May 2013 15:59:46 +0000 (+0200) Subject: gpio/omap: omap_gpio_init_context stub must be inline X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~31^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea4a21a298e1a9c4e5ea58309850477b2a19aa87;p=pandora-kernel.git gpio/omap: omap_gpio_init_context stub must be inline 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 Acked-by: Tony Lindgren Acked-by: Santosh Shilimkar Signed-off-by: Linus Walleij --- Reading git-diff-tree failed