net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
Subsystems (3)
PATCH v2 1/1 net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Signed-off-by Fabio Estevam <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
---
Changes since v1:
- I am resending it with Andrew's Reviewed-by. Originally I have mistyped tha netdev mailing list address.
drivers/net/ethernet/freescale/fec_main.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/freescale/fec_main.c +4 -0
@@ -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).
Signature · 1 line
2.7.4