backport-include: map possible_net_t to struct net *
authorArend van Spriel <arend@broadcom.com>
Thu, 19 Mar 2015 13:58:50 +0000 (14:58 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Apr 2015 21:24:06 +0000 (23:24 +0200)
commit 0c5c9fb55106 (net: Introduce possible_net_t) changed
use of write_pnet and read_pnet. This patch will map possible_net_t
back to struct net * to use old api.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/net/net_namespace.h

index 0ba7359971a231bcc6ecbb8096723a4b73f67eec..b9f8b2ba7dba6f03a69c4d13ab6b9b4bcb049922 100644 (file)
@@ -35,4 +35,8 @@ static inline struct net *get_net_ns_by_fd(int fd)
 }
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0)
+#define possible_net_t struct net *
+#endif
+
 #endif /* _COMPAT_NET_NET_NAMESPACE_H */