Skip to content

Commit e0260d5

Browse files
committed
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 2193ede ("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>
1 parent e43c608 commit e0260d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/9p/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ config NET_9P_XEN
4141
two Xen domains.
4242

4343
config NET_9P_USBG
44-
bool "9P USB Gadget Transport"
45-
depends on USB_GADGET=y || USB_GADGET=NET_9P
44+
tristate "9P USB Gadget Transport"
45+
depends on USB_GADGET
4646
select CONFIGFS_FS
4747
select USB_LIBCOMPOSITE
4848
help

0 commit comments

Comments
 (0)