Skip to contentSkip to conversation

net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272

PATCH Applied Fabio Estevam 2 participants 4 messages Jun 10, 2017

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 drivers/net/ethernet/freescale/fec_main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ethernet/freescale/fec_main.c +4 -0
index 297fd19..a6e323f 100644
@@ -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
maintainer Applied
#1 lore raw

From: Fabio Estevam <[email protected]>
Date: Fri, 9 Jun 2017 22:37:22 -0300

Quoted 11 lines

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.

Applied, thanks.

#2 lore raw
Quoted 10 lines · David Miller

From: Fabio Estevam <[email protected]>
Date: Fri, 9 Jun 2017 22:37:22 -0300

Quoted 7 lines

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.

Quoted 6 lines
Quoted 4 lines

Add the missing empty stub to fix the build failure.

Applied, thanks.

I should have marked net-next in the Subject.

Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51") is in net-next, so this one should go to net-next, not to net.

Sorry about that.

maintainer
#3 lore raw

From: Fabio Estevam <[email protected]>
Date: Sat, 10 Jun 2017 17:33:01 -0300

Quoted 16 lines · David Miller
Quoted 15 lines

From: Fabio Estevam <[email protected]>
Date: Fri, 9 Jun 2017 22:37:22 -0300

Quoted 11 lines

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.

Quoted 8 lines
Quoted 1 line

Applied, thanks.

I should have marked net-next in the Subject.

Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51") is in net-next, so this one should go to net-next, not to net.

Sorry about that.

Ok, reverted from 'net' and applied to 'net-next' with an appropriate
Fixes: tag added.

Thanks.