diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2015-02-05 10:34:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-05 19:03:27 -0500 |
commit | 57ae84a0099a767c2cc5947d642b3eeabc6f9d68 (patch) | |
tree | 2b54e4a82a4f31850a4153d43453c8b3945f922a /drivers/net/ethernet | |
parent | a20667bf7d1f76e20c42812e69b6eb1d471a3d49 (diff) |
enic: enic_main: fix sparse warnings
this patch fixes following sparse warnings:
enic_main.c:92:28: warning: symbol 'mod_table' was not declared. Should it be static?
enic_main.c:109:28: warning: symbol 'mod_range' was not declared. Should it be static?
enic_main.c:1306:5: warning: symbol 'enic_busy_poll' was not declared. Should it be static?
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index ee44c827164d..9cbe038a388e 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c | |||
@@ -89,7 +89,7 @@ MODULE_DEVICE_TABLE(pci, enic_id_table); | |||
89 | * coalescing timer values | 89 | * coalescing timer values |
90 | * {rx_rate in Mbps, mapping percentage of the range} | 90 | * {rx_rate in Mbps, mapping percentage of the range} |
91 | */ | 91 | */ |
92 | struct enic_intr_mod_table mod_table[ENIC_MAX_COALESCE_TIMERS + 1] = { | 92 | static struct enic_intr_mod_table mod_table[ENIC_MAX_COALESCE_TIMERS + 1] = { |
93 | {4000, 0}, | 93 | {4000, 0}, |
94 | {4400, 10}, | 94 | {4400, 10}, |
95 | {5060, 20}, | 95 | {5060, 20}, |
@@ -106,7 +106,7 @@ struct enic_intr_mod_table mod_table[ENIC_MAX_COALESCE_TIMERS + 1] = { | |||
106 | /* This table helps the driver to pick different ranges for rx coalescing | 106 | /* This table helps the driver to pick different ranges for rx coalescing |
107 | * timer depending on the link speed. | 107 | * timer depending on the link speed. |
108 | */ | 108 | */ |
109 | struct enic_intr_mod_range mod_range[ENIC_MAX_LINK_SPEEDS] = { | 109 | static struct enic_intr_mod_range mod_range[ENIC_MAX_LINK_SPEEDS] = { |
110 | {0, 0}, /* 0 - 4 Gbps */ | 110 | {0, 0}, /* 0 - 4 Gbps */ |
111 | {0, 3}, /* 4 - 10 Gbps */ | 111 | {0, 3}, /* 4 - 10 Gbps */ |
112 | {3, 6}, /* 10 - 40 Gbps */ | 112 | {3, 6}, /* 10 - 40 Gbps */ |
@@ -1303,7 +1303,7 @@ static void enic_set_rx_cpu_rmap(struct enic *enic) | |||
1303 | #endif /* CONFIG_RFS_ACCEL */ | 1303 | #endif /* CONFIG_RFS_ACCEL */ |
1304 | 1304 | ||
1305 | #ifdef CONFIG_NET_RX_BUSY_POLL | 1305 | #ifdef CONFIG_NET_RX_BUSY_POLL |
1306 | int enic_busy_poll(struct napi_struct *napi) | 1306 | static int enic_busy_poll(struct napi_struct *napi) |
1307 | { | 1307 | { |
1308 | struct net_device *netdev = napi->dev; | 1308 | struct net_device *netdev = napi->dev; |
1309 | struct enic *enic = netdev_priv(netdev); | 1309 | struct enic *enic = netdev_priv(netdev); |