Patchwork [3/3] 6lowpan: include net/net_namespace.h on 6lowpan namepsace header

login
register
mail settings
Submitter Luis R. Rodriguez
Date April 18, 2014, 1:22 a.m.
Message ID <1397784176-15809-4-git-send-email-mcgrof@do-not-panic.com>
Download mbox | patch
Permalink /patch/340206/
State Accepted
Delegated to: David Miller
Headers show

Comments

Luis R. Rodriguez - April 18, 2014, 1:22 a.m.
From: "Luis R. Rodriguez" <mcgrof@suse.com>

Don't rely on driver files or other headers having this file included.

CC: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: linux-zigbee-devel@lists.sourceforge.net
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
 include/net/6lowpan.h | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index f7d372b..79b530f 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -54,6 +54,7 @@ 
 #define __6LOWPAN_H__
 
 #include <net/ipv6.h>
+#include <net/net_namespace.h>
 
 #define UIP_802154_SHORTADDR_LEN	2  /* compressed ipv6 address length */
 #define UIP_IPH_LEN			40 /* ipv6 fixed header size */