netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpts: add missing <linux/if_vlan.h>
@ 2014-04-06 11:55 Sergei Trofimovich
  2014-04-06 16:48 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Trofimovich @ 2014-04-06 11:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sergei Trofimovich, David S. Miller, netdev

From: Sergei Trofimovich <slyfox@gentoo.org>

gcc complains as:
    drivers/net/ethernet/ti/cpts.c: In function 'cpts_match':
    drivers/net/ethernet/ti/cpts.c:266:12: error: 'ETH_HLEN' undeclared (first use in this function)
    drivers/net/ethernet/ti/cpts.c:266:12: note: each undeclared identifier is reported only once for each function it appears in
    drivers/net/ethernet/ti/cpts.c:276:23: error: 'VLAN_HLEN' undeclared (first use in this function)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
CC: "David S. Miller" <davem@davemloft.net>
CC: netdev@vger.kernel.org
---
 drivers/net/ethernet/ti/cpts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c
index a3bbf59..c413e79 100644
--- a/drivers/net/ethernet/ti/cpts.c
+++ b/drivers/net/ethernet/ti/cpts.c
@@ -19,6 +19,7 @@
  */
 #include <linux/err.h>
 #include <linux/if.h>
+#include <linux/if_vlan.h>
 #include <linux/hrtimer.h>
 #include <linux/module.h>
 #include <linux/net_tstamp.h>
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-06 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 11:55 [PATCH] cpts: add missing <linux/if_vlan.h> Sergei Trofimovich
2014-04-06 16:48 ` Daniel Borkmann

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).