]> www.infradead.org Git - nvme.git/commit
net/9p/usbg: allow building as standalone module
authorDominique Martinet <asmadeus@codewreck.org>
Fri, 22 Nov 2024 14:43:02 +0000 (23:43 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Fri, 22 Nov 2024 14:48:14 +0000 (23:48 +0900)
commite0260d530b73ee969ae971d14daa02376dcfc93f
tree2bc63ae4448bd7891d6767d94ad97e3b276d0ee8
parente43c608f40c065b30964f0a806348062991b802d
net/9p/usbg: allow building as standalone module

There is no reason only the usbg transport would not be its own module,
so make it tristate.

In particular, this fixes a couple of issues the current bool had:
- trans_usbg was apparently not compiled at all when NET_9P=m
- the workaround added in commit 2193ede180dd ("net/9p/usbg: fix
CONFIG_USB_GADGET dependency") became redundant because a tristate item
cannot be built-in when its dependency is a module, so we can depend on
USB_GADGET "normally" again.

Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lkml.kernel.org/r/ZzhWRPDNwu225NWz@codewreck.org
Message-ID: <20241122144754.1231919-1-asmadeus@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/Kconfig