From: Axel Lin Date: Wed, 30 Nov 2011 22:07:18 +0000 (+0000) Subject: dsa: Include linux/if_ether.h to fix build error X-Git-Tag: v3.12-rc1~4160^2~386 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea1f51beff4ddd0234c59a125290aeb355cf62b2;p=kernel%2Fkernel-generic.git 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 Signed-off-by: David S. Miller --- diff --git a/include/net/dsa.h b/include/net/dsa.h index b78db3c..7828ebf 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 #include #include #include