Commit 078adb3b authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Michael S. Tsirkin

vhost: 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>
Message-Id: <20220917083803.21521-1-xiujianfeng@huawei.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 4fe89d07
...@@ -1781,7 +1781,7 @@ static struct miscdevice vhost_net_misc = { ...@@ -1781,7 +1781,7 @@ static struct miscdevice vhost_net_misc = {
.fops = &vhost_net_fops, .fops = &vhost_net_fops,
}; };
static int vhost_net_init(void) static int __init vhost_net_init(void)
{ {
if (experimental_zcopytx) if (experimental_zcopytx)
vhost_net_enable_zcopy(VHOST_NET_VQ_TX); vhost_net_enable_zcopy(VHOST_NET_VQ_TX);
...@@ -1789,7 +1789,7 @@ static int vhost_net_init(void) ...@@ -1789,7 +1789,7 @@ static int vhost_net_init(void)
} }
module_init(vhost_net_init); module_init(vhost_net_init);
static void vhost_net_exit(void) static void __exit vhost_net_exit(void)
{ {
misc_deregister(&vhost_net_misc); misc_deregister(&vhost_net_misc);
} }
......
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