fix build with XEN and EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.
That's a merge commit, is that where the problem happened because Linus did the merge resolution incorrectly, or is it really due to some other patch that added this feature incorrectly?
If the latter, please provide that git commit id.
thanks,
greg k-h
Hello.
Quoted 5 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.
Summary of that merge needs to be quoted I think, as well as in the case it
was a normal commit...
Quoted 4 lines
Reported-by Randy Dunlap <[email protected]>Signed-off-by Jan Beulich <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Alan Stern <[email protected]>
WBR, Sergei
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Greg KH
Quoted 5 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.That's a merge commit, is that where the problem happened because Linus did the merge resolution incorrectly, or is it really due to some other
No. He did it based on what we (Stefano and me) thought was the correct way that address the ARM and generic patches merge.
While it did work - Randy found via his random config generator cronjob that it did not address all of the EHCI/EARLY/USB/PCI combinations.
Quoted 7 lines
patch that added this feature incorrectly?
If the latter, please provide that git commit id.
thanks,
greg k-h
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Greg KH
Quoted 5 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.That's a merge commit, is that where the problem happened because Linus did the merge resolution incorrectly, or is it really due to some other patch that added this feature incorrectly?
It was indeed the merge that broke things (Linus just followed the recommendation from Stefano, which weren't consistent with the rest of the code).
Jan
Quoted 5 lines
If the latter, please provide that git commit id.
thanks,
greg k-h
Alan Stern
Acked-byQuoted 6 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.
Quoted 7 lines
Reported-by Randy Dunlap <[email protected]>Signed-off-by Jan Beulich <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Alan Stern <[email protected]>---
v2: Switch the dependency fromUSB_SUPPORTtoUSB_EHCI_HCDas requested
by Alan (albeit I don't really agree to that change).
Considering that the rest of ehci-dbgp.c is specific to EHCI hardware, using USB_EHCI_HCD seems to me like a reasonable thing to do.
Quoted 2 lines
--- arch/x86/kernel/cpu/perf_event_p6.c | 2 +-
What's up with this?
Quoted 2 lines
drivers/usb/early/ehci-dbgp.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Alan Stern
Quoted 6 lines · Jan Beulich
Since there's no possible caller of
dbgp_external_startup()anddbgp_reset_prep()when !USB_EHCI_HCD, there's no point in building and exporting these functions in that case. This eliminates a build error under the conditions listed in the subject, introduced with the mergef1c6872e4980bc4078cfaead05f892b3d78dea64.Quoted 7 lines
Reported-by Randy Dunlap <[email protected]>Signed-off-by Jan Beulich <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Alan Stern <[email protected]>---
v2: Switch the dependency fromUSB_SUPPORTtoUSB_EHCI_HCDas requested
by Alan (albeit I don't really agree to that change).
Quoted 7 lines
Considering that the rest of
ehci-dbgp.cis specific to EHCI hardware, usingUSB_EHCI_HCDseems to me like a reasonable thing to do.Quoted 2 lines
--- arch/x86/kernel/cpu/perf_event_p6.c | 2 +-What's up with this?
I had to fix an unrelated build issue, and while I removed the resulting change from the patch, I forgot to update the diffstat (I had lumped that change into the same patch). So please ignore this wrong piece of information.
Jan
Quoted 4 lines
Quoted 2 lines
drivers/usb/early/ehci-dbgp.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-)Acked-by Alan Stern <[email protected]>