linux-next: build failure after merge of the usb tree
Hi all,
After merging the usb tree, today's linux-next build (x86_64 modules_install) failed like this:
depmod: ERROR: Cycle detected: usbcore -> onboard_usb_hub -> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!
Caused by commit
c40b62216c1a ("usb: core: hcd: Create platform devices for onboard hubs in probe()")
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64modules_install) failed like this:
Quoted 8 lines
depmod: ERROR: Cycle detected: usbcore ->
onboard_usb_hub-> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!Caused by commit
c40b62216c1a("usb: core: hcd: Create platform devices for onboard hubs inprobe()")I have reverted that commit for today.
argh, I thought the build issues were fixed :(
I'll go revert that series from my tree later today, thanks for the report.
greg k-h
Quoted 9 lines · Greg KH
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64modules_install) failed like this:depmod: ERROR: Cycle detected: usbcore ->
onboard_usb_hub-> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!
Quoted 7 lines
Quoted 5 lines
Caused by commit
c40b62216c1a("usb: core: hcd: Create platform devices for onboard hubs inprobe()")I have reverted that commit for today.
argh, I thought the build issues were fixed :(
Sorry about that :(
The *build* issues were actually fixed, however I did not try modules_install ...
Quoted 2 lines
I'll go revert that series from my tree later today, thanks for the report.
I think the dependency situation can only be resolved by linking onboard_hub_create/destroy_pdevs() into the USB core module. My initial idea was to build them into the kernel binary, however that doesn't work because onboard_hub_create_pdevs() calls usb_of_get_device_node(), which is part of the core module when CONFIG_USB=m. The two function are relatively lightweight and don't depend on internals of the onboard_usb_hub driver (besides the device id table) so linking them into the core module doesn't seem too ugly.
Quoted 26 lines · Matthias Kaehlcke
Quoted 9 lines · Greg KH
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64modules_install) failed like this:depmod: ERROR: Cycle detected: usbcore ->
onboard_usb_hub-> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!Quoted 7 lines
Quoted 5 lines
Caused by commit
c40b62216c1a("usb: core: hcd: Create platform devices for onboard hubs inprobe()")I have reverted that commit for today.
argh, I thought the build issues were fixed :(
Sorry about that :(
The *build* issues were actually fixed, however I did not try
modules_install...Quoted 2 lines
I'll go revert that series from my tree later today, thanks for the report.
Quoted 8 lines
I think the dependency situation can only be resolved by linking onboard_hub_create/destroy_pdevs() into the USB core module. My initial idea was to build them into the kernel binary, however that doesn't work because
onboard_hub_create_pdevs()callsusb_of_get_device_node(), which is part of the core module whenCONFIG_USB=m. The two function are relatively lightweight and don't depend on internals of theonboard_usb_hubdriver (besides the device id table) so linking them into the core module doesn't seem too ugly.
I'll try to look at this next week, it shouldn't be that complex. If it is, something feels wrong...
thanks,
greg k-h
Quoted 36 lines · Greg KH
Quoted 26 lines · Matthias Kaehlcke
Quoted 9 lines · Greg KH
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64modules_install) failed like this:depmod: ERROR: Cycle detected: usbcore ->
onboard_usb_hub-> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!Quoted 7 lines
Quoted 5 lines
Caused by commit
c40b62216c1a("usb: core: hcd: Create platform devices for onboard hubs inprobe()")I have reverted that commit for today.
argh, I thought the build issues were fixed :(
Sorry about that :(
The *build* issues were actually fixed, however I did not try
modules_install...Quoted 2 lines
I'll go revert that series from my tree later today, thanks for the report.
Quoted 8 lines
I think the dependency situation can only be resolved by linking onboard_hub_create/destroy_pdevs() into the USB core module. My initial idea was to build them into the kernel binary, however that doesn't work because
onboard_hub_create_pdevs()callsusb_of_get_device_node(), which is part of the core module whenCONFIG_USB=m. The two function are relatively lightweight and don't depend on internals of theonboard_usb_hubdriver (besides the device id table) so linking them into the core module doesn't seem too ugly.
Quoted 2 lines
I'll try to look at this next week, it shouldn't be that complex. If it is, something feels wrong...
Thanks!
The root of all these dependency issues is that the core/HCD code needs to call APIs of the onboard hub driver to create/destroy platform devices based on the device tree. That's fine when CONFIG_USB=y and CONFIG_USB_ONBOARD_HUB=y, but gets complicated when modules come into play, since the core/HCD code depends on the aforementioned driver functions and the driver depends on symbols from the USB core.
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64modules_install) failed like this:
Quoted 8 lines
depmod: ERROR: Cycle detected: usbcore ->
onboard_usb_hub-> usbcore
depmod: ERROR: Found 2 modules in dependency cycles!Caused by commit
c40b62216c1a("usb: core: hcd: Create platform devices for onboard hubs inprobe()")I have reverted that commit for today.
Series is now reverted in my tree, thanks for the report.
greg k-h