Commit d57aae2e authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Jakub Kicinski

net: macvtap: add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20220917083535.20040-1-xiujianfeng@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 134a4647
...@@ -207,7 +207,7 @@ static struct notifier_block macvtap_notifier_block __read_mostly = { ...@@ -207,7 +207,7 @@ static struct notifier_block macvtap_notifier_block __read_mostly = {
.notifier_call = macvtap_device_event, .notifier_call = macvtap_device_event,
}; };
static int macvtap_init(void) static int __init macvtap_init(void)
{ {
int err; int err;
...@@ -241,7 +241,7 @@ static int macvtap_init(void) ...@@ -241,7 +241,7 @@ static int macvtap_init(void)
} }
module_init(macvtap_init); module_init(macvtap_init);
static void macvtap_exit(void) static void __exit macvtap_exit(void)
{ {
rtnl_link_unregister(&macvtap_link_ops); rtnl_link_unregister(&macvtap_link_ops);
unregister_netdevice_notifier(&macvtap_notifier_block); unregister_netdevice_notifier(&macvtap_notifier_block);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment