Skip to contentSkip to conversation

usb/gadget: aspeed-vhub: add USB_LIBCOMPOSITE dependency

PATCH Superseded Arnd Bergmann 4 participants 5 messages May 25, 2018 – Jun 14, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb/gadget: aspeed-vhub: add USB_LIBCOMPOSITE dependency

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")
---
 drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/aspeed-vhub/Kconfig +1 -0
index f0cdf89b8503..83ba8a2eb6af 100644
@@ -2,6 +2,7 @@
 config USB_ASPEED_VHUB
 	tristate "Aspeed vHub UDC driver"
 	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on USB_LIBCOMPOSITE
 	help
 	  USB peripheral controller for the Aspeed AST2500 family
 	  SoCs supporting the "vHub" functionality and USB2.0
Signature · 1 line
2.9.0
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Arnd Bergmann

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Thanks ! I hadn't realized these functions were part of an optional library.

Quoted 2 lines
Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")
Quoted 16 lines
---
 drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/aspeed-vhub/Kconfig +1 -0
index f0cdf89b8503..83ba8a2eb6af 100644
@@ -2,6 +2,7 @@
 config USB_ASPEED_VHUB
 	tristate "Aspeed vHub UDC driver"
 	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on USB_LIBCOMPOSITE
 	help
 	  USB peripheral controller for the Aspeed AST2500 family
 	  SoCs supporting the "vHub" functionality and USB2.0
Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann

Hi,

Quoted 7 lines · Arnd Bergmann

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")
Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180530/7fc655b2/attachment.sig>
#3 lore raw
Quoted 5 lines · Felipe Balbi

Hi,

Quoted 2 lines · Arnd Bergmann

Without that option, we run into a link failure:

Quoted 7 lines
Quoted 5 lines

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")

Greg, can you send this to Linus asap ? Some people are hitting build breakages upstream because of this.

Thanks !

Cheers,
Ben,

#4 lore raw
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 8 lines · Felipe Balbi

Hi,

Quoted 5 lines · Arnd Bergmann

Without that option, we run into a link failure:

drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request':
hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string'

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Fixes 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")

Greg, can you send this to Linus asap ? Some people are hitting build breakages upstream because of this.

Agreed.

Quoted 1 line

Thanks !

ditto.

Signature · 1 line
~Randy