Skip to content

Commit 41e8e40

Browse files
Fabio Estevamdavem330
authored andcommitted
net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
Commit 2b30842 ("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. Fixes: Commit 2b30842 ("net: fec: Clear and enable MIB counters on imx51") Reported-by: Paul Gortmaker <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 89dfba3 commit 41e8e40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,6 +2379,10 @@ static void fec_enet_clear_ethtool_stats(struct net_device *dev)
23792379
static inline void fec_enet_update_ethtool_stats(struct net_device *dev)
23802380
{
23812381
}
2382+
2383+
static inline void fec_enet_clear_ethtool_stats(struct net_device *dev)
2384+
{
2385+
}
23822386
#endif /* !defined(CONFIG_M5272) */
23832387

23842388
/* ITR clock source is enet system clock (clk_ahb).

0 commit comments

Comments
 (0)