Skip to content

Commit ea1f51b

Browse files
AxelLindavem330
authored andcommitted
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>
1 parent fc33cc7 commit ea1f51b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/net/dsa.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef __LINUX_NET_DSA_H
1212
#define __LINUX_NET_DSA_H
1313

14+
#include <linux/if_ether.h>
1415
#include <linux/list.h>
1516
#include <linux/timer.h>
1617
#include <linux/workqueue.h>

0 commit comments

Comments
 (0)