Skip to contentSkip to conversation

fix build with XEN and EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled

PATCH Greg KH 5 participants 6 messages Oct 29, 2012 – Oct 30, 2012 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw
Quoted 5 lines · Jan Beulich

Since there's no possible caller of dbgp_external_startup() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

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

#2 lore raw
In reply to a message not in the archive

Hello.

Quoted 5 lines · Jan Beulich

Since there's no possible caller of dbgp_external_startup() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

Summary of that merge needs to be quoted I think, as well as in the case it
was a normal commit...

Quoted 4 lines

WBR, Sergei

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 9 lines · Greg KH
Quoted 5 lines · Jan Beulich

Since there's no possible caller of dbgp_external_startup() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

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

#5 lore raw
In reply to a message not in the archive
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() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

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

Acked-by
#6 lore raw
In reply to a message not in the archive
Quoted 6 lines · Jan Beulich

Since there's no possible caller of dbgp_external_startup() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

Quoted 7 lines

---
v2: Switch the dependency from USB_SUPPORT to USB_EHCI_HCD as 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]

#8 lore raw
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() and dbgp_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 merge f1c6872e4980bc4078cfaead05f892b3d78dea64.

Quoted 7 lines

---
v2: Switch the dependency from USB_SUPPORT to USB_EHCI_HCD as requested
by Alan (albeit I don't really agree to that change).

Quoted 7 lines

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?

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(-)