vhost: add __init/__exit annotations to module init/exit funcs
authorXiu Jianfeng <xiujianfeng@huawei.com>
Sat, 17 Sep 2022 08:38:03 +0000 (16:38 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Oct 2022 13:32:40 +0000 (09:32 -0400)
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>
drivers/vhost/net.c

index 68e4ecd1cc0e844957814c2f98d5245ba20bd177..1cab1a831bb6ec8a6dd9ceec0cfdeccf4b0e1829 100644 (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);
 }