* [PATCH] dsa: Include linux/if_ether.h to fix build error
@ 2011-12-01 8:07 Axel Lin
2011-12-01 17:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-01 8:07 UTC (permalink / raw)
To: linux-kernel; +Cc: David S. Miller, netdev
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>
---
include/net/dsa.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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 <linux/if_ether.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dsa: Include linux/if_ether.h to fix build error
2011-12-01 8:07 [PATCH] dsa: Include linux/if_ether.h to fix build error Axel Lin
@ 2011-12-01 17:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-01 17:41 UTC (permalink / raw)
To: axel.lin; +Cc: linux-kernel, netdev
From: Axel Lin <axel.lin@gmail.com>
Date: Thu, 01 Dec 2011 16:07:18 +0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-01 17:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01 8:07 [PATCH] dsa: Include linux/if_ether.h to fix build error Axel Lin
2011-12-01 17:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).