Re: [PATCH] fs/9p: Remove INET dependency

From: Jason Andryuk
Date: Tue May 02 2023 - 08:03:36 EST


Hi, Dominique

On Mon, May 1, 2023 at 3:43 PM Dominique Martinet
<asmadeus@xxxxxxxxxxxxx> wrote:
>
> Jason Andryuk wrote on Mon, May 01, 2023 at 03:06:00PM -0400:
> > 9pfs can run over assorted transports, so it doesn't have an INET
> > dependency. Drop it and remove the includes of linux/inet.h.
> >
> > This allows configuring 9pfs over Xen with INET disabled.
>
> Good catch.
> Could you add depends on INET to NET_9P_FD in net/9p/Kconfig?

trans_fd.o builds without INET and without UNIX. Looks like trying to
use either TCP or UNIX sockets would lead to runtime errors, but it
also supports generic file descriptors. That could be useful for
someone. Since it builds, would it be okay to leave this patch
unchanged, or do you still want the depends added? Leaving the patch
unchanged provides more flexibility, though the runtime errors may
surprise users. While I built a Xen kernel without INET or UNIX, that
is an unusual scenario. Typically INET and UNIX sockets will be built
in anyway even without a depends.

Thanks,
Jason