Message ID | 1396402008-3462-1-git-send-email-ast@plumgrid.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
On 04/02/2014 03:26 AM, Alexei Starovoitov wrote: > 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 <fengguang.wu@intel.com> > Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> > Suggested-by: Daniel Borkmann <dborkman@redhat.com> > Cc: Richard Cochran <richardcochran@gmail.com> Acked-by: Daniel Borkmann <dborkman@redhat.com> Thanks, should have set up an ARM toolchain :/ (allmodconfig on x86_64 was fine). -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Alexei Starovoitov <ast@plumgrid.com> Date: Tue, 1 Apr 2014 18:26:48 -0700 > 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 <fengguang.wu@intel.com> > Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> > Suggested-by: Daniel Borkmann <dborkman@redhat.com> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c index a3bbf59eaafd..243513980b51 100644 --- a/drivers/net/ethernet/ti/cpts.c +++ b/drivers/net/ethernet/ti/cpts.c @@ -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"
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 <fengguang.wu@intel.com> Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> Suggested-by: Daniel Borkmann <dborkman@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> --- arm build looks clean now. Sorry for the prior breakage. drivers/net/ethernet/ti/cpts.c | 2 ++ 1 file changed, 2 insertions(+)