diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-05-18 11:22:41 -0400 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2017-05-18 14:42:58 -0400 |
commit | aaf0475a0b3f445000c50f7fc75d5e846bf7ee7b (patch) | |
tree | 51631905389788ec15931e85cacead03abbeeb18 /net/9p | |
parent | 14e3995e63759b80eb22a3c06958d105db4d3f79 (diff) |
xen/9pfs: p9_trans_xen_init and p9_trans_xen_exit can be static
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>
Diffstat (limited to 'net/9p')
-rw-r--r-- | net/9p/trans_xen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c index 83fe487f460e..6ad3e043c617 100644 --- a/net/9p/trans_xen.c +++ b/net/9p/trans_xen.c | |||
@@ -525,7 +525,7 @@ static struct xenbus_driver xen_9pfs_front_driver = { | |||
525 | .otherend_changed = xen_9pfs_front_changed, | 525 | .otherend_changed = xen_9pfs_front_changed, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | int p9_trans_xen_init(void) | 528 | static int p9_trans_xen_init(void) |
529 | { | 529 | { |
530 | if (!xen_domain()) | 530 | if (!xen_domain()) |
531 | return -ENODEV; | 531 | return -ENODEV; |
@@ -537,7 +537,7 @@ int p9_trans_xen_init(void) | |||
537 | } | 537 | } |
538 | module_init(p9_trans_xen_init); | 538 | module_init(p9_trans_xen_init); |
539 | 539 | ||
540 | void p9_trans_xen_exit(void) | 540 | static void p9_trans_xen_exit(void) |
541 | { | 541 | { |
542 | v9fs_unregister_trans(&p9_xen_trans); | 542 | v9fs_unregister_trans(&p9_xen_trans); |
543 | return xenbus_unregister_driver(&xen_9pfs_front_driver); | 543 | return xenbus_unregister_driver(&xen_9pfs_front_driver); |