mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[UNIX]: Extend unix_sysctl_(un)register prototypes
Add the struct net * argument to both of them to use in the future. Also make the register one return an error code. It is useless right now, but will make the future patches much simpler. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dd88590995
commit
97577e3828
3 changed files with 9 additions and 8 deletions
|
@ -2175,7 +2175,7 @@ static int __init af_unix_init(void)
|
|||
|
||||
sock_register(&unix_family_ops);
|
||||
register_pernet_subsys(&unix_net_ops);
|
||||
unix_sysctl_register();
|
||||
unix_sysctl_register(&init_net);
|
||||
out:
|
||||
return rc;
|
||||
}
|
||||
|
@ -2183,7 +2183,7 @@ out:
|
|||
static void __exit af_unix_exit(void)
|
||||
{
|
||||
sock_unregister(PF_UNIX);
|
||||
unix_sysctl_unregister();
|
||||
unix_sysctl_unregister(&init_net);
|
||||
proto_unregister(&unix_proto);
|
||||
unregister_pernet_subsys(&unix_net_ops);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue