summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvtap.c
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-09-17 16:35:35 +0800
committerJakub Kicinski <kuba@kernel.org>2022-09-21 18:22:30 -0700
commitd57aae2e0563d5271de11df093d50d3539e694fe (patch)
tree52f55965c3b6f33ad28072ff2f6f4692316ffa0c /drivers/net/macvtap.c
parent134a4647922290159ade41c61a6277b37b6b1f4f (diff)
downloadlinux-d57aae2e0563d5271de11df093d50d3539e694fe.tar.gz
linux-d57aae2e0563d5271de11df093d50d3539e694fe.tar.bz2
linux-d57aae2e0563d5271de11df093d50d3539e694fe.zip
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>
Diffstat (limited to 'drivers/net/macvtap.c')
-rw-r--r--drivers/net/macvtap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index cecf8c63096c..d1f435788e90 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
@@ -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);