xen/9pfs: p9_trans_xen_init and p9_trans_xen_exit can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 May 2017 15:22:41 +0000 (15:22 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 18 May 2017 18:42:58 +0000 (11:42 -0700)
Fixes the following sparse warnings:

net/9p/trans_xen.c:528:5: warning:
 symbol 'p9_trans_xen_init' was not declared. Should it be static?
net/9p/trans_xen.c:540:6: warning:
 symbol 'p9_trans_xen_exit' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
net/9p/trans_xen.c

index 83fe487f460ef8c5c38af2b90b71536b018ab639..6ad3e043c6174ae97a82525688988e740d87fd29 100644 (file)
@@ -525,7 +525,7 @@ static struct xenbus_driver xen_9pfs_front_driver = {
        .otherend_changed = xen_9pfs_front_changed,
 };
 
-int p9_trans_xen_init(void)
+static int p9_trans_xen_init(void)
 {
        if (!xen_domain())
                return -ENODEV;
@@ -537,7 +537,7 @@ int p9_trans_xen_init(void)
 }
 module_init(p9_trans_xen_init);
 
-void p9_trans_xen_exit(void)
+static void p9_trans_xen_exit(void)
 {
        v9fs_unregister_trans(&p9_xen_trans);
        return xenbus_unregister_driver(&xen_9pfs_front_driver);