summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-09-09 12:35:46 +0200
committerDominique Martinet <asmadeus@codewreck.org>2022-10-07 14:23:09 +0200
commit0664c63af16dceb4b40a9825e738136a2dac0260 (patch)
treefe7843c7c010a1b091ccdb71e995faedc75ccb2e /net/9p
parentnet/9p: use a dedicated spinlock for trans_fd (diff)
downloadlinux-0664c63af16dceb4b40a9825e738136a2dac0260.tar.xz
linux-0664c63af16dceb4b40a9825e738136a2dac0260.zip
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>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/trans_xen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
index 41c57d40efb6..b15c64128c3e 100644
--- a/net/9p/trans_xen.c
+++ b/net/9p/trans_xen.c
@@ -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;
@@ -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);