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@xxxxxxxxxxxx> --- backport/backport-include/net/net_namespace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/net/net_namespace.h b/backport/backport-include/net/net_namespace.h index 8927af7..085bce7 100644 --- a/backport/backport-include/net/net_namespace.h +++ b/backport/backport-include/net/net_namespace.h @@ -30,4 +30,8 @@ static inline struct net *get_net_ns_by_fd(int fd) return ERR_PTR(-EINVAL); } +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) +#define possible_net_t struct net * +#endif + #endif /* _COMPAT_NET_NET_NAMESPACE_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html