netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
@ 2017-06-10  1:37 Fabio Estevam
  2017-06-10 20:16 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2017-06-10  1:37 UTC (permalink / raw)
  To: davem; +Cc: fugang.duan, andrew, cphealy, netdev, paul.gortmaker,
	Fabio Estevam

From: Fabio Estevam <fabio.estevam@nxp.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@windriver.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
  2017-06-10  1:37 [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272 Fabio Estevam
@ 2017-06-10 20:16 ` David Miller
  2017-06-10 20:33   ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2017-06-10 20:16 UTC (permalink / raw)
  To: festevam
  Cc: fugang.duan, andrew, cphealy, netdev, paul.gortmaker,
	fabio.estevam

From: Fabio Estevam <festevam@gmail.com>
Date: Fri,  9 Jun 2017 22:37:22 -0300

> From: Fabio Estevam <fabio.estevam@nxp.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@windriver.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
  2017-06-10 20:16 ` David Miller
@ 2017-06-10 20:33   ` Fabio Estevam
  2017-06-10 20:45     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2017-06-10 20:33 UTC (permalink / raw)
  To: David Miller
  Cc: Fugang Duan, Andrew Lunn, Chris Healy, netdev@vger.kernel.org,
	Paul Gortmaker, Fabio Estevam

On Sat, Jun 10, 2017 at 5:16 PM, David Miller <davem@davemloft.net> wrote:
> From: Fabio Estevam <festevam@gmail.com>
> Date: Fri,  9 Jun 2017 22:37:22 -0300
>
>> From: Fabio Estevam <fabio.estevam@nxp.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@windriver.com>
>> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
>
> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272
  2017-06-10 20:33   ` Fabio Estevam
@ 2017-06-10 20:45     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2017-06-10 20:45 UTC (permalink / raw)
  To: festevam
  Cc: fugang.duan, andrew, cphealy, netdev, paul.gortmaker,
	fabio.estevam

From: Fabio Estevam <festevam@gmail.com>
Date: Sat, 10 Jun 2017 17:33:01 -0300

> On Sat, Jun 10, 2017 at 5:16 PM, David Miller <davem@davemloft.net> wrote:
>> From: Fabio Estevam <festevam@gmail.com>
>> Date: Fri,  9 Jun 2017 22:37:22 -0300
>>
>>> From: Fabio Estevam <fabio.estevam@nxp.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@windriver.com>
>>> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
>>
>> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-10 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-10  1:37 [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272 Fabio Estevam
2017-06-10 20:16 ` David Miller
2017-06-10 20:33   ` Fabio Estevam
2017-06-10 20:45     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).