[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1497058642-31542-1-git-send-email-festevam@gmail.com>
Date: Fri, 9 Jun 2017 22:37:22 -0300
From: Fabio Estevam <festevam@...il.com>
To: davem@...emloft.net
Cc: fugang.duan@....com, andrew@...n.ch, cphealy@...il.com,
netdev@...r.kernel.org, paul.gortmaker@...driver.com,
Fabio Estevam <fabio.estevam@....com>
Subject: [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
From: Fabio Estevam <fabio.estevam@....com>
Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51")
introduced fec_enet_clear_ethtool_stats(), but missed to add a stub
for the CONFIG_M5272=y case, causing build failure for the
m5272c3_defconfig.
Add the missing empty stub to fix the build failure.
Reported-by: Paul Gortmaker <paul.gortmaker@...driver.com>
Signed-off-by: Fabio Estevam <fabio.estevam@....com>
---
drivers/net/ethernet/freescale/fec_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 297fd19..a6e323f 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2379,6 +2379,10 @@ static void fec_enet_clear_ethtool_stats(struct net_device *dev)
static inline void fec_enet_update_ethtool_stats(struct net_device *dev)
{
}
+
+static inline void fec_enet_clear_ethtool_stats(struct net_device *dev)
+{
+}
#endif /* !defined(CONFIG_M5272) */
/* ITR clock source is enet system clock (clk_ahb).
--
2.7.4
Powered by blists - more mailing lists