X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=net%2Fnetlink%2Faf_netlink.c;h=aea805c98da3ee5b6312277c29c55cf92fc80ae3;hb=3f378b684453f2a028eda463ce383370545d9cc9;hp=19e98007691cce17b68e3fc29896b7dc3626a526;hpb=f0a221ef47df3cdde2123fe75ce3b61bb7df656d;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 19e98007691c..aea805c98da3 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -428,7 +428,8 @@ static int __netlink_create(struct net *net, struct socket *sock, return 0; } -static int netlink_create(struct net *net, struct socket *sock, int protocol) +static int netlink_create(struct net *net, struct socket *sock, int protocol, + int kern) { struct module *module = NULL; struct mutex *cb_mutex; @@ -2050,7 +2051,7 @@ static const struct proto_ops netlink_ops = { .sendpage = sock_no_sendpage, }; -static struct net_proto_family netlink_family_ops = { +static const struct net_proto_family netlink_family_ops = { .family = PF_NETLINK, .create = netlink_create, .owner = THIS_MODULE, /* for consistency 8) */