diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-19 18:06:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-19 18:06:48 -0400 |
commit | 9e856e4b475502270f2cfdd7b289075c1924786b (patch) | |
tree | 0c28c99505aea81dcbe968219ffee6caeda6b933 /net/9p | |
parent | 1fbbed4137de93e02fc62776b8bf08a2d9ae1141 (diff) | |
parent | c71e6d804c88168ecf02aaf14e1fd5773d683b5f (diff) |
Merge tag 'for-linus-4.12b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross:
"Some fixes for the new Xen 9pfs frontend and some minor cleanups"
* tag 'for-linus-4.12b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
xen: make xen_flush_tlb_all() static
xen: cleanup pvh leftovers from pv-only sources
xen/9pfs: p9_trans_xen_init and p9_trans_xen_exit can be static
xen/9pfs: fix return value check in xen_9pfs_front_probe()
Diffstat (limited to 'net/9p')
-rw-r--r-- | net/9p/trans_xen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c index 71e85643b3f9..6ad3e043c617 100644 --- a/net/9p/trans_xen.c +++ b/net/9p/trans_xen.c | |||
@@ -454,8 +454,8 @@ static int xen_9pfs_front_probe(struct xenbus_device *dev, | |||
454 | goto error_xenbus; | 454 | goto error_xenbus; |
455 | } | 455 | } |
456 | priv->tag = xenbus_read(xbt, dev->nodename, "tag", NULL); | 456 | priv->tag = xenbus_read(xbt, dev->nodename, "tag", NULL); |
457 | if (!priv->tag) { | 457 | if (IS_ERR(priv->tag)) { |
458 | ret = -EINVAL; | 458 | ret = PTR_ERR(priv->tag); |
459 | goto error_xenbus; | 459 | goto error_xenbus; |
460 | } | 460 | } |
461 | ret = xenbus_transaction_end(xbt, 0); | 461 | ret = xenbus_transaction_end(xbt, 0); |
@@ -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); |