]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/rose/af_rose.c
Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
[karo-tx-linux.git] / net / rose / af_rose.c
index 502cce76621d07abdd624798c5c76e3802db63aa..8feb9e5d66232e22ab8ef5048557ba3bdfd56e98 100644 (file)
@@ -512,12 +512,13 @@ static struct proto rose_proto = {
        .obj_size = sizeof(struct rose_sock),
 };
 
-static int rose_create(struct net *net, struct socket *sock, int protocol)
+static int rose_create(struct net *net, struct socket *sock, int protocol,
+                      int kern)
 {
        struct sock *sk;
        struct rose_sock *rose;
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        if (sock->type != SOCK_SEQPACKET || protocol != 0)
@@ -1509,7 +1510,7 @@ static const struct file_operations rose_info_fops = {
 };
 #endif /* CONFIG_PROC_FS */
 
-static struct net_proto_family rose_family_ops = {
+static const struct net_proto_family rose_family_ops = {
        .family         =       PF_ROSE,
        .create         =       rose_create,
        .owner          =       THIS_MODULE,