cxgb4: make function ch_flower_stats_cb, fixes warning
authorColin Ian King <colin.king@canonical.com>
Tue, 26 Sep 2017 15:14:09 +0000 (16:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:21:37 +0000 (10:21 -0700)
The function ch_flower_stats_cb is local to the source and does not need
to be in global scope, so make it static.

Cleans up sparse warnings:
symbol 'ch_flower_stats_cb' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c

index a36bd66d2834b95443929b7f8d6e7d35e5054ba9..92a31176738186cf412c5b4bedd5e9c80a3b92f8 100644 (file)
@@ -366,7 +366,7 @@ err:
        return ret;
 }
 
-void ch_flower_stats_cb(unsigned long data)
+static void ch_flower_stats_cb(unsigned long data)
 {
        struct adapter *adap = (struct adapter *)data;
        struct ch_tc_flower_entry *flower_entry;