diff mbox series

[LEDE-DEV,2/4] staging: mt7621-gpio: mt7621: make symbol gc_map static

Message ID 20180517004228.30766-2-rosenp@gmail.com
State Rejected
Delegated to: John Crispin
Headers show
Series [LEDE-DEV,1/4] staging: mt7621-gpio: remove redundant owner assignments of drivers | expand

Commit Message

Rosen Penev May 17, 2018, 12:42 a.m. UTC
From: Wei Yongjun <weiyongjun1@huawei.com>

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>
---
 .../0028-GPIO-ralink-add-mt7621-gpio-controller.patch           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/patches-4.14/0028-GPIO-ralink-add-mt7621-gpio-controller.patch b/target/linux/ramips/patches-4.14/0028-GPIO-ralink-add-mt7621-gpio-controller.patch
index ea341dc33c..a6f19f50ea 100644
--- a/target/linux/ramips/patches-4.14/0028-GPIO-ralink-add-mt7621-gpio-controller.patch
+++ b/target/linux/ramips/patches-4.14/0028-GPIO-ralink-add-mt7621-gpio-controller.patch
@@ -90,7 +90,7 @@  Signed-off-by: John Crispin <blogic@openwrt.org>
 +static struct irq_domain *mediatek_gpio_irq_domain;
 +static atomic_t irq_refcount = ATOMIC_INIT(0);
 +
-+struct mtk_gc {
++static struct mtk_gc {
 +	struct gpio_chip chip;
 +	spinlock_t lock;
 +	int bank;