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