mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NETFILTER]: Rename init functions.
Every netfilter module uses `init' for its module_init() function and `fini' or `cleanup' for its module_exit() function. Problem is, this creates uninformative initcall_debug output and makes ctags rather useless. So go through and rename them all to $(filename)_init and $(filename)_fini. Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c3e5d877aa
commit
65b4b4e81a
118 changed files with 477 additions and 477 deletions
|
|
@ -133,7 +133,7 @@ static struct nf_hook_ops dnrmg_ops = {
|
|||
.priority = NF_DN_PRI_DNRTMSG,
|
||||
};
|
||||
|
||||
static int __init init(void)
|
||||
static int __init dn_rtmsg_init(void)
|
||||
{
|
||||
int rv = 0;
|
||||
|
||||
|
|
@ -152,7 +152,7 @@ static int __init init(void)
|
|||
return rv;
|
||||
}
|
||||
|
||||
static void __exit fini(void)
|
||||
static void __exit dn_rtmsg_fini(void)
|
||||
{
|
||||
nf_unregister_hook(&dnrmg_ops);
|
||||
sock_release(dnrmg->sk_socket);
|
||||
|
|
@ -164,6 +164,6 @@ MODULE_AUTHOR("Steven Whitehouse <[email protected]>");
|
|||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_DNRTMSG);
|
||||
|
||||
module_init(init);
|
||||
module_exit(fini);
|
||||
module_init(dn_rtmsg_init);
|
||||
module_exit(dn_rtmsg_fini);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue