Skip to content

Commit 0664c63

Browse files
Xiu Jianfengmartinetd
authored andcommitted
net/9p: add __init/__exit annotations to module init/exit funcs
xen transport was missing annotations Link: https://lkml.kernel.org/r/20220909103546.73015-1-xiujianfeng@huawei.com Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
1 parent 296ab4a commit 0664c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/9p/trans_xen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static struct xenbus_driver xen_9pfs_front_driver = {
511511
.otherend_changed = xen_9pfs_front_changed,
512512
};
513513

514-
static int p9_trans_xen_init(void)
514+
static int __init p9_trans_xen_init(void)
515515
{
516516
int rc;
517517

@@ -530,7 +530,7 @@ static int p9_trans_xen_init(void)
530530
module_init(p9_trans_xen_init);
531531
MODULE_ALIAS_9P("xen");
532532

533-
static void p9_trans_xen_exit(void)
533+
static void __exit p9_trans_xen_exit(void)
534534
{
535535
v9fs_unregister_trans(&p9_xen_trans);
536536
return xenbus_unregister_driver(&xen_9pfs_front_driver);

0 commit comments

Comments
 (0)