Linux commit 11aa9c28 added a new parameter to sk_alloc() which is not available on older kernel versions. Just ignore it on these older versions. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/net/sock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/net/sock.h b/backport/backport-include/net/sock.h index 1a0a415..caca6d1 100644 --- a/backport/backport-include/net/sock.h +++ b/backport/backport-include/net/sock.h @@ -43,4 +43,8 @@ BUILD_BUG_ON((size) > FIELD_SIZEOF(struct sk_buff, cb)) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) +#define sk_alloc(net, family, priority, prot, kern) sk_alloc(net, family, priority, prot) +#endif + #endif /* __BACKPORT_NET_SOCK_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