]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/bluetooth/bnep/sock.c
net: pass kern to net_proto_family create function
[net-next-2.6.git] / net / bluetooth / bnep / sock.c
index e857628b0b27e61234102dc843ab0cc84a5f5c42..2ff6ac7b2ed494b8ffcac277d0e067b92d408734 100644 (file)
@@ -195,7 +195,8 @@ static struct proto bnep_proto = {
        .obj_size       = sizeof(struct bt_sock)
 };
 
-static int bnep_sock_create(struct net *net, struct socket *sock, int protocol)
+static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
+                           int kern)
 {
        struct sock *sk;
 
@@ -222,7 +223,7 @@ static int bnep_sock_create(struct net *net, struct socket *sock, int protocol)
        return 0;
 }
 
-static struct net_proto_family bnep_sock_family_ops = {
+static const struct net_proto_family bnep_sock_family_ops = {
        .family = PF_BLUETOOTH,
        .owner  = THIS_MODULE,
        .create = bnep_sock_create