staging: mt7621-gpio: mt7621: make symbol gc_map static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 22 Mar 2018 02:09:25 +0000 (02:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 17:31:04 +0000 (18:31 +0100)
Fixes the following sparse warning:

drivers/staging/mt7621-gpio/gpio-mt7621.c:47:3: warning:
 symbol 'gc_map' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c

index 830d429..5123568 100644 (file)
@@ -38,7 +38,7 @@ static void __iomem *mediatek_gpio_membase;
 static int mediatek_gpio_irq;
 static struct irq_domain *mediatek_gpio_irq_domain;
 
-struct mtk_gc {
+static struct mtk_gc {
        struct gpio_chip chip;
        spinlock_t lock;
        int bank;