backports only adds the possible_{write,read}_pnet() functions for kernel < 4.1. This results in a compile error on kernel 4.1. This patch make it use the original functions on these kernel versions. This fixes a problem introduced in 3d418885971. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> Cc: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx> --- backport/backport-include/net/net_namespace.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backport/backport-include/net/net_namespace.h b/backport/backport-include/net/net_namespace.h index 90c044f..4d0b721 100644 --- a/backport/backport-include/net/net_namespace.h +++ b/backport/backport-include/net/net_namespace.h @@ -57,6 +57,9 @@ static inline struct net *possible_read_pnet(const possible_net_t *pnet) return &init_net; #endif } +#else +#define possible_write_pnet(pnet, net) write_pnet(pnet, net) +#define possible_read_pnet(pnet) read_pnet(pnet) #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) */ #endif /* _COMPAT_NET_NET_NAMESPACE_H */ -- 2.1.4 -- 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