Skip to contentSkip to conversation

net/9p/usbg: allow building as standalone module

PATCH New Dominique Martinet 1 participant 1 message Nov 22, 2024 9P file system

lore
Share & tools
lore

Dominique Martinet

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 net/9p/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/9p/Kconfig +2 -2
index ee967fd25312..22f8c167845d 100644
@@ -41,8 +41,8 @@ config NET_9P_XEN
 	  two Xen domains.
 
 config NET_9P_USBG
-	bool "9P USB Gadget Transport"
-	depends on USB_GADGET=y || USB_GADGET=NET_9P
+	tristate "9P USB Gadget Transport"
+	depends on USB_GADGET
 	select CONFIGFS_FS
 	select USB_LIBCOMPOSITE
 	help
Signature · 1 line
2.46.1