net: ti: fix CPTS driver build on arm
Subsystems (2)
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)
---
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
@@ -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
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")Reported-by Fengguang Wu <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>Suggested-by Daniel Borkmann <[email protected]>Cc Richard Cochran <[email protected]>
Thanks, should have set up an ARM toolchain :/ (allmodconfig on x86_64 was fine).
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")Reported-by Fengguang Wu <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>Suggested-by Daniel Borkmann <[email protected]>
Applied, thanks.