diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-08 02:53:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-08 18:46:30 -0400 |
commit | 9f00d9776bc5beb92e8bfc884a7e96ddc5589e2e (patch) | |
tree | 2a9f9513a13c73cb1196ebe3426389c1140e2888 /net/netlink/af_netlink.c | |
parent | 9785e10aedfa0fad5c1aac709dce5ada1b123783 (diff) | |
download | linux-3.10-9f00d9776bc5beb92e8bfc884a7e96ddc5589e2e.tar.gz linux-3.10-9f00d9776bc5beb92e8bfc884a7e96ddc5589e2e.tar.bz2 linux-3.10-9f00d9776bc5beb92e8bfc884a7e96ddc5589e2e.zip |
netlink: hide struct module parameter in netlink_kernel_create
This patch defines netlink_kernel_create as a wrapper function of
__netlink_kernel_create to hide the struct module *me parameter
(which seems to be THIS_MODULE in all existing netlink subsystems).
Suggested by David S. Miller.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index b74540ce3c1..4d348e97e13 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -1526,9 +1526,8 @@ static void netlink_data_ready(struct sock *sk, int len) */ struct sock * -netlink_kernel_create(struct net *net, int unit, - struct module *module, - struct netlink_kernel_cfg *cfg) +__netlink_kernel_create(struct net *net, int unit, struct module *module, + struct netlink_kernel_cfg *cfg) { struct socket *sock; struct sock *sk; @@ -1603,8 +1602,7 @@ out_sock_release_nosk: sock_release(sock); return NULL; } -EXPORT_SYMBOL(netlink_kernel_create); - +EXPORT_SYMBOL(__netlink_kernel_create); void netlink_kernel_release(struct sock *sk) |