Skip to content

Commit

Permalink
net/9p: add __init/__exit annotations to module init/exit funcs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiu Jianfeng authored and Dominique Martinet committed Oct 7, 2022
1 parent 296ab4a commit 0664c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/9p/trans_xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ static struct xenbus_driver xen_9pfs_front_driver = {
.otherend_changed = xen_9pfs_front_changed,
};

static int p9_trans_xen_init(void)
static int __init p9_trans_xen_init(void)
{
int rc;

Expand All @@ -530,7 +530,7 @@ static int p9_trans_xen_init(void)
module_init(p9_trans_xen_init);
MODULE_ALIAS_9P("xen");

static void p9_trans_xen_exit(void)
static void __exit p9_trans_xen_exit(void)
{
v9fs_unregister_trans(&p9_xen_trans);
return xenbus_unregister_driver(&xen_9pfs_front_driver);
Expand Down

0 comments on commit 0664c63

Please sign in to comment.