From: Jingoo Han Date: Tue, 6 Aug 2013 09:43:18 +0000 (+0900) Subject: gpio: msm: Staticize local variable 'msm_gpio' X-Git-Tag: v3.12-rc1~111^2~16 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b3abebc777015a445a95548aafe2d3a4b116288e;p=~emulex%2Finfiniband.git gpio: msm: Staticize local variable 'msm_gpio' The local variable 'msm_gpio' is used only in this file. Fix the following sparse warning: drivers/gpio/gpio-msm-v2.c:109:21: warning: symbol 'msm_gpio' was not declared. Should it be static? Signed-off-by: Jingoo Han Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-msm-v2.c b/drivers/gpio/gpio-msm-v2.c index f4491a497cc..27fe8b11b67 100644 --- a/drivers/gpio/gpio-msm-v2.c +++ b/drivers/gpio/gpio-msm-v2.c @@ -106,7 +106,7 @@ struct msm_gpio_dev { void __iomem *msm_tlmm_base; }; -struct msm_gpio_dev msm_gpio; +static struct msm_gpio_dev msm_gpio; #define GPIO_INTR_CFG_SU(gpio) (msm_gpio.msm_tlmm_base + 0x0400 + \ (0x04 * (gpio)))