net: ti: fix CPTS driver build on arm
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 2 Apr 2014 01:26:48 +0000 (18:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Apr 2014 15:24:51 +0000 (11:24 -0400)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c

index a3bbf59eaafdf2e31b400336129e3731e0d88364..243513980b51511a9c3054d71c8a270d63949cb1 100644 (file)
@@ -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"