summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-30 22:07:18 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-01 11:41:06 -0500
commitea1f51beff4ddd0234c59a125290aeb355cf62b2 (patch)
treec8e891e261fe9a7477e11c825947feae828f6279
parentfc33cc72423ed3474cd51bc8bd7c1cdc22a78e1a (diff)
downloadblackbird-op-linux-ea1f51beff4ddd0234c59a125290aeb355cf62b2.tar.gz
blackbird-op-linux-ea1f51beff4ddd0234c59a125290aeb355cf62b2.zip
dsa: Include linux/if_ether.h to fix build error
Include linux/if_ether.h to fix below build errors: CC arch/arm/mach-kirkwood/common.o In file included from arch/arm/mach-kirkwood/common.c:19: include/net/dsa.h: In function 'dsa_uses_dsa_tags': include/net/dsa.h:192: error: 'ETH_P_DSA' undeclared (first use in this function) include/net/dsa.h:192: error: (Each undeclared identifier is reported only once include/net/dsa.h:192: error: for each function it appears in.) include/net/dsa.h: In function 'dsa_uses_trailer_tags': include/net/dsa.h:197: error: 'ETH_P_TRAILER' undeclared (first use in this function) make[1]: *** [arch/arm/mach-kirkwood/common.o] Error 1 make: *** [arch/arm/mach-kirkwood] Error 2 Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index b78db3c09608..7828ebf99ee1 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -11,6 +11,7 @@
#ifndef __LINUX_NET_DSA_H
#define __LINUX_NET_DSA_H
+#include <linux/if_ether.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
OpenPOWER on IntegriCloud