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

Rosen Penev rosenp at gmail.com
Wed May 16 17:42:26 PDT 2018


From: Wei Yongjun <weiyongjun1 at 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 at huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 .../0028-GPIO-ralink-add-mt7621-gpio-controller.patch           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 at 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;
-- 
2.17.0




More information about the Lede-dev mailing list