forked from Minki/linux
net: macvtap: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Link: https://lore.kernel.org/r/20220917083535.20040-1-xiujianfeng@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
134a464792
commit
d57aae2e05
@ -207,7 +207,7 @@ static struct notifier_block macvtap_notifier_block __read_mostly = {
|
||||
.notifier_call = macvtap_device_event,
|
||||
};
|
||||
|
||||
static int macvtap_init(void)
|
||||
static int __init macvtap_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
@ -241,7 +241,7 @@ out1:
|
||||
}
|
||||
module_init(macvtap_init);
|
||||
|
||||
static void macvtap_exit(void)
|
||||
static void __exit macvtap_exit(void)
|
||||
{
|
||||
rtnl_link_unregister(&macvtap_link_ops);
|
||||
unregister_netdevice_notifier(&macvtap_notifier_block);
|
||||
|
Loading…
Reference in New Issue
Block a user