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

From: Dominique Martinet
Date: Tue May 02 2023 - 19:31:54 EST


Jason Andryuk wrote on Tue, May 02, 2023 at 08:03:15AM -0400:
> > 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.

Hmm, good point; the socket interface is common between INET and
UNIX.. And you're right about the ability to use plain fd as well.

How about 'imply INET'? That will automatically select INET when
enabled, but allow someone to disable it explicitly.

It's rare enough that I didn't know about it though, just found it in
Documentation/kbuild/kconfig-language.rst ...
I guess this version is fine as is if you think it's too minor, I agree
kernels without INET ought to be rare enough and if it builds for
randconfig tests I'm fine with this.

--
Dominique Martinet | Asmadeus