net: pass kern to net_proto_family create function
[firefly-linux-kernel-4.4.55.git] / net / ipx / af_ipx.c
index 66c7a20011f36b3147bb66c5169f5c292236f597..96d193a24415412896269cb6ef5938f022dc2fa2 100644 (file)
@@ -1352,7 +1352,8 @@ static struct proto ipx_proto = {
        .obj_size = sizeof(struct ipx_sock),
 };
 
-static int ipx_create(struct net *net, struct socket *sock, int protocol)
+static int ipx_create(struct net *net, struct socket *sock, int protocol,
+                     int kern)
 {
        int rc = -ESOCKTNOSUPPORT;
        struct sock *sk;
@@ -1927,7 +1928,7 @@ static int ipx_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long
  * Socket family declarations
  */
 
-static struct net_proto_family ipx_family_ops = {
+static const struct net_proto_family ipx_family_ops = {
        .family         = PF_IPX,
        .create         = ipx_create,
        .owner          = THIS_MODULE,