Skip to content

Commit 078adb3

Browse files
Xiu Jianfengmstsirkin
authored andcommitted
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 4fe89d0 commit 078adb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/vhost/net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,15 +1781,15 @@ static struct miscdevice vhost_net_misc = {
17811781
.fops = &vhost_net_fops,
17821782
};
17831783

1784-
static int vhost_net_init(void)
1784+
static int __init vhost_net_init(void)
17851785
{
17861786
if (experimental_zcopytx)
17871787
vhost_net_enable_zcopy(VHOST_NET_VQ_TX);
17881788
return misc_register(&vhost_net_misc);
17891789
}
17901790
module_init(vhost_net_init);
17911791

1792-
static void vhost_net_exit(void)
1792+
static void __exit vhost_net_exit(void)
17931793
{
17941794
misc_deregister(&vhost_net_misc);
17951795
}

0 commit comments

Comments
 (0)