staging: mt7621-eth: Fix sparse warning in ethtool.c
authorChris Coffey <cmc@babblebit.net>
Thu, 29 Mar 2018 12:47:45 +0000 (13:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:33:20 +0000 (15:33 +0200)
This fixes the following sparse warning:

drivers/staging/mt7621-eth/ethtool.c:213:6: warning: symbol
'mtk_set_ethtool_ops' was not declared. Should it be static?

Signed-off-by: Chris Coffey <cmc@babblebit.net>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-eth/ethtool.c

index 38ba0c040aba6443b8b9861aa6294c831141d287..5268c5ca097defbfd225718fe8a0a3d02053416b 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include "mtk_eth_soc.h"
+#include "ethtool.h"
 
 static const char mtk_gdma_str[][ETH_GSTRING_LEN] = {
 #define _FE(x...)      # x,