enic: enic_ethtool: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 15:29:55 +0000 (15:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 00:03:27 +0000 (16:03 -0800)
this patch fixes following sparse warning:

enic_ethtool.c:95:6: warning: symbol 'enic_intr_coal_set_rx' 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>
drivers/net/ethernet/cisco/enic/enic_ethtool.c

index 0c396c1f55dc9e8290047033d1c4bf1e0bdcbb8e..28d9ca675a274f9876473bcce7e6995a14e1289e 100644 (file)
@@ -92,7 +92,7 @@ static const unsigned int enic_n_tx_stats = ARRAY_SIZE(enic_tx_stats);
 static const unsigned int enic_n_rx_stats = ARRAY_SIZE(enic_rx_stats);
 static const unsigned int enic_n_gen_stats = ARRAY_SIZE(enic_gen_stats);
 
-void enic_intr_coal_set_rx(struct enic *enic, u32 timer)
+static void enic_intr_coal_set_rx(struct enic *enic, u32 timer)
 {
        int i;
        int intr;