vhost: 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>
Message-Id: <20220917083803.21521-1-xiujianfeng@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Xiu Jianfeng 2022-09-17 16:38:03 +08:00 committed by Michael S. Tsirkin
parent 4fe89d07dc
commit 078adb3bf4
1 changed files with 2 additions and 2 deletions

View File

@ -1781,7 +1781,7 @@ static struct miscdevice vhost_net_misc = {
.fops = &vhost_net_fops,
};
static int vhost_net_init(void)
static int __init vhost_net_init(void)
{
if (experimental_zcopytx)
vhost_net_enable_zcopy(VHOST_NET_VQ_TX);
@ -1789,7 +1789,7 @@ static int vhost_net_init(void)
}
module_init(vhost_net_init);
static void vhost_net_exit(void)
static void __exit vhost_net_exit(void)
{
misc_deregister(&vhost_net_misc);
}