Skip to contentSkip to conversation

net: ti: fix CPTS driver build on arm

PATCH Applied Alexei Starovoitov 3 participants 3 messages Apr 2, 2014 – Apr 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ti: fix CPTS driver build on arm

fix build errors:
drivers/net/ethernet/ti/cpts.c:266:12: error: 'ETH_HLEN' undeclared (first use in this function) drivers/net/ethernet/ti/cpts.c:276:23: error: 'VLAN_HLEN' undeclared (first use in this function)

Fixes 408eccce3204 ("net: ptp: move PTP classifier in its own file")
Cc Richard Cochran <[email protected]>

---

arm build looks clean now.
Sorry for the prior breakage.

 drivers/net/ethernet/ti/cpts.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/ti/cpts.c +2 -0
index a3bbf59eaafd..243513980b51 100644
@@ -26,6 +26,8 @@
 #include <linux/time.h>
 #include <linux/uaccess.h>
 #include <linux/workqueue.h>
+#include <linux/if_ether.h>
+#include <linux/if_vlan.h>
 
 #include "cpts.h"
 
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Alexei Starovoitov

fix build errors:
drivers/net/ethernet/ti/cpts.c:266:12: error: 'ETH_HLEN' undeclared (first use in this function) drivers/net/ethernet/ti/cpts.c:276:23: error: 'VLAN_HLEN' undeclared (first use in this function)

Fixes 408eccce3204 ("net: ptp: move PTP classifier in its own file")
Cc Richard Cochran <[email protected]>

Thanks, should have set up an ARM toolchain :/ (allmodconfig on x86_64 was fine).

maintainer Applied
#2 lore raw
In reply to Alexei Starovoitov

From: Alexei Starovoitov <[email protected]>
Date: Tue, 1 Apr 2014 18:26:48 -0700

Quoted 8 lines

fix build errors:
drivers/net/ethernet/ti/cpts.c:266:12: error: 'ETH_HLEN' undeclared (first use in this function) drivers/net/ethernet/ti/cpts.c:276:23: error: 'VLAN_HLEN' undeclared (first use in this function)

Fixes 408eccce3204 ("net: ptp: move PTP classifier in its own file")

Applied, thanks.