summaryrefslogtreecommitdiff
path: root/net/9p/Kconfig
diff options
context:
space:
mode:
authorJason Andryuk <jandryuk@gmail.com>2023-05-04 15:47:23 -0400
committerDavid S. Miller <davem@davemloft.net>2023-05-04 21:46:57 +0100
commitd7385ba137711ea71527a605cac162610a621de8 (patch)
treeded9fc1d23237e05d82c9f337dca4a5eb7520acd /net/9p/Kconfig
parent042334a8d424a1917e916e611a8dda7f8caf1491 (diff)
9p: Remove INET dependency
9pfs can run over assorted transports, so it doesn't have an INET dependency. Drop it and remove the includes of linux/inet.h. NET_9P_FD/trans_fd.o builds without INET or UNIX and is usable over plain file descriptors. However, tcp and unix functionality is still built and would generate runtime failures if used. Add imply INET and UNIX to NET_9P_FD, so functionality is enabled by default but can still be explicitly disabled. This allows configuring 9pfs over Xen with INET and UNIX disabled. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/9p/Kconfig')
-rw-r--r--net/9p/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/9p/Kconfig b/net/9p/Kconfig
index deabbd376cb1..00ebce9e5a65 100644
--- a/net/9p/Kconfig
+++ b/net/9p/Kconfig
@@ -17,6 +17,8 @@ if NET_9P
config NET_9P_FD
default NET_9P
+ imply INET
+ imply UNIX
tristate "9P FD Transport"
help
This builds support for transports over TCP, Unix sockets and