Skip to content

Commit

Permalink
net: macvtap: add __init/__exit annotations to module init/exit funcs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiu Jianfeng authored and Jakub Kicinski committed Sep 22, 2022
1 parent 134a464 commit d57aae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/macvtap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -241,7 +241,7 @@ static int macvtap_init(void)
}
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);
Expand Down

0 comments on commit d57aae2

Please sign in to comment.