dlm: add __init and __exit marks to init and exit functions
it moves 365 bytes from .text to .init.text, and 30 bytes from .text to .exit.text, saves memory. Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
committed by
David Teigland
parent
d292c0cc48
commit
30727174b6
@@ -78,7 +78,7 @@ static struct genl_ops dlm_nl_ops = {
|
||||
.doit = user_cmd,
|
||||
};
|
||||
|
||||
int dlm_netlink_init(void)
|
||||
int __init dlm_netlink_init(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
@@ -95,7 +95,7 @@ int dlm_netlink_init(void)
|
||||
return rv;
|
||||
}
|
||||
|
||||
void dlm_netlink_exit(void)
|
||||
void __exit dlm_netlink_exit(void)
|
||||
{
|
||||
genl_unregister_ops(&family, &dlm_nl_ops);
|
||||
genl_unregister_family(&family);
|
||||
|
Reference in New Issue
Block a user