[PATCH -next] net: dsa: qca8k: fix non static symbol warning

Subsystems: networking drivers, networking [dsa], the rest

STALE3675d

2 messages, 2 authors, 2016-09-22 · open the first message on its own page

[PATCH -next] net: dsa: qca8k: fix non static symbol warning

From: Wei Yongjun <hidden>
Date: 2016-09-21 15:04:52

From: Wei Yongjun <redacted>

Fixes the following sparse warning:

drivers/net/dsa/qca8k.c:259:22: warning:
 symbol 'qca8k_regmap_config' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <redacted>
---
 drivers/net/dsa/qca8k.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
index 7f3f178..280acb0 100644
--- a/drivers/net/dsa/qca8k.c
+++ b/drivers/net/dsa/qca8k.c
@@ -256,7 +256,7 @@ static struct regmap_access_table qca8k_readable_table = {
 	.n_yes_ranges = ARRAY_SIZE(qca8k_readable_ranges),
 };
 
-struct regmap_config qca8k_regmap_config = {
+static struct regmap_config qca8k_regmap_config = {
 	.reg_bits = 16,
 	.val_bits = 32,
 	.reg_stride = 4,

Re: [PATCH -next] net: dsa: qca8k: fix non static symbol warning

From: David Miller <davem@davemloft.net>
Date: 2016-09-22 07:18:04

From: Wei Yongjun <redacted>
Date: Wed, 21 Sep 2016 15:04:43 +0000
From: Wei Yongjun <redacted>

Fixes the following sparse warning:

drivers/net/dsa/qca8k.c:259:22: warning:
 symbol 'qca8k_regmap_config' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help