summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/16-bluetooth/net_bluetooth_bnep_sock.patch
blob: a5ebf7983a5fc6c95080c16ec952e96ee1ae184a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/net/bluetooth/bnep/sock.c
+++ b/net/bluetooth/bnep/sock.c
@@ -186,8 +186,12 @@
 	.obj_size	= sizeof(struct bt_sock)
 };
 
+#if defined(CPTCFG_BACKPORT_BT_SOCK_CREATE_NEEDS_KERN)
 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
 			    int kern)
+#else
+static int bnep_sock_create(struct net *net, struct socket *sock, int protocol)
+#endif
 {
 	struct sock *sk;