summaryrefslogtreecommitdiffstats
path: root/include/net/9p
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2021-11-03 20:38:23 +0100
committerDominique Martinet <asmadeus@codewreck.org>2022-01-10 02:00:09 +0100
commit019641d1b57dff018972b23c95e898f9ff18222f (patch)
tree0384e69b4db92b9f20cc7bd3c8447ac6b3cfeb66 /include/net/9p
parent9p/xen: autoload when xenbus service is available (diff)
downloadlinux-019641d1b57dff018972b23c95e898f9ff18222f.tar.xz
linux-019641d1b57dff018972b23c95e898f9ff18222f.zip
net/p9: load default transports
Now that all transports are split into modules it may happen that no transports are registered when v9fs_get_default_trans() is called. When that is the case try to load more transports from modules. Link: https://lkml.kernel.org/r/20211103193823.111007-5-linux@weissschuh.net Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> [Dominique: constify v9fs_get_trans_by_name argument as per patch1v2] Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'include/net/9p')
-rw-r--r--include/net/9p/transport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h
index 15a4e6a9dbf7..ff842f963071 100644
--- a/include/net/9p/transport.h
+++ b/include/net/9p/transport.h
@@ -54,7 +54,7 @@ struct p9_trans_module {
void v9fs_register_trans(struct p9_trans_module *m);
void v9fs_unregister_trans(struct p9_trans_module *m);
-struct p9_trans_module *v9fs_get_trans_by_name(char *s);
+struct p9_trans_module *v9fs_get_trans_by_name(const char *s);
struct p9_trans_module *v9fs_get_default_trans(void);
void v9fs_put_trans(struct p9_trans_module *m);