In commit cdfbabfb2f0ce ("net: Work around lockdep limitation in sockets that use sockets") a extra parameter was added to proto_ops->accept(), do not assume it on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- patches/0081-proto_ops-accept/nfc.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/0081-proto_ops-accept/nfc.patch diff --git a/patches/0081-proto_ops-accept/nfc.patch b/patches/0081-proto_ops-accept/nfc.patch new file mode 100644 index 00000000..decd13a8 --- /dev/null +++ b/patches/0081-proto_ops-accept/nfc.patch @@ -0,0 +1,16 @@ +diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c +index 043c6d3..5b4e44c 100644 +--- a/net/nfc/llcp_sock.c ++++ b/net/nfc/llcp_sock.c +@@ -443,7 +443,11 @@ struct sock *nfc_llcp_accept_dequeue(struct sock *parent, + } + + static int llcp_sock_accept(struct socket *sock, struct socket *newsock, ++#if LINUX_VERSION_IS_GEQ(4,11,0) + int flags, bool kern) ++#else ++ int flags) ++#endif + { + DECLARE_WAITQUEUE(wait, current); + struct sock *sk = sock->sk, *new_sk; -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe backports" in