All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
@ 2012-11-01  5:42 David Rientjes
  2012-11-01 12:49 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 8+ messages in thread
From: David Rientjes @ 2012-11-01  5:42 UTC (permalink / raw)
  To: Linus Torvalds, Konrad Rzeszutek Wilk, Jeremy Fitzhardinge
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, xen-devel,
	linux-kernel

CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
resulting in the following link error:

drivers/built-in.o: In function `dbgp_reset_prep':
(.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
drivers/built-in.o: In function `dbgp_external_startup':
(.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'

Signed-off-by: David Rientjes <rientjes@google.com>
---
 arch/x86/xen/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
--- a/arch/x86/xen/Kconfig
+++ b/arch/x86/xen/Kconfig
@@ -17,6 +17,7 @@ config XEN_DOM0
 	def_bool y
 	depends on XEN && PCI_XEN && SWIOTLB_XEN
 	depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
+	depends on USB_SUPPORT
 
 # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST
 # name in tools.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
  2012-11-01  5:42 [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled David Rientjes
@ 2012-11-01 12:49 ` Konrad Rzeszutek Wilk
  2012-11-01 20:04     ` Jan Beulich
  0 siblings, 1 reply; 8+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-11-01 12:49 UTC (permalink / raw)
  To: David Rientjes, JBeulich
  Cc: Linus Torvalds, Jeremy Fitzhardinge, Thomas Gleixner,
	Ingo Molnar, H. Peter Anvin, x86, xen-devel, linux-kernel

On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
> resulting in the following link error:
> 
> drivers/built-in.o: In function `dbgp_reset_prep':
> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
> drivers/built-in.o: In function `dbgp_external_startup':
> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'

There is another patch that needs to be Acked and picked up by
Greg KH that fixes this.

Let me poke Jan Beulich to repost it with the appropiate Acks.
> 
> Signed-off-by: David Rientjes <rientjes@google.com>
> ---
>  arch/x86/xen/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
> --- a/arch/x86/xen/Kconfig
> +++ b/arch/x86/xen/Kconfig
> @@ -17,6 +17,7 @@ config XEN_DOM0
>  	def_bool y
>  	depends on XEN && PCI_XEN && SWIOTLB_XEN
>  	depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
> +	depends on USB_SUPPORT
>  
>  # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST
>  # name in tools.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
  2012-11-01 12:49 ` Konrad Rzeszutek Wilk
@ 2012-11-01 20:04     ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2012-11-01 20:04 UTC (permalink / raw)
  To: rientjes, konrad.wilk
  Cc: jeremy, x86, tglx, torvalds, xen-devel, mingo, linux-kernel, hpa

>>> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> 11/01/12 1:49 PM >>>
>On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
>> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
>> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
>> resulting in the following link error:
>> 
>> drivers/built-in.o: In function `dbgp_reset_prep':
>> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
>> drivers/built-in.o: In function `dbgp_external_startup':
>> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'
>
>There is another patch that needs to be Acked and picked up by
>Greg KH that fixes this.
>
>Let me poke Jan Beulich to repost it with the appropiate Acks.

It's been picked up already, but another dependency problem was found with
it (due to not having used CONFIG_USB_SUPPORT as dependency, as I had
first submitted).

Jan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
@ 2012-11-01 20:04     ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2012-11-01 20:04 UTC (permalink / raw)
  To: rientjes, konrad.wilk
  Cc: jeremy, x86, tglx, torvalds, xen-devel, mingo, linux-kernel, hpa

>>> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> 11/01/12 1:49 PM >>>
>On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
>> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
>> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
>> resulting in the following link error:
>> 
>> drivers/built-in.o: In function `dbgp_reset_prep':
>> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
>> drivers/built-in.o: In function `dbgp_external_startup':
>> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'
>
>There is another patch that needs to be Acked and picked up by
>Greg KH that fixes this.
>
>Let me poke Jan Beulich to repost it with the appropiate Acks.

It's been picked up already, but another dependency problem was found with
it (due to not having used CONFIG_USB_SUPPORT as dependency, as I had
first submitted).

Jan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
  2012-11-01 20:04     ` Jan Beulich
  (?)
@ 2012-11-01 22:05     ` Konrad Rzeszutek Wilk
  2012-11-01 22:30       ` David Rientjes
  2012-11-02  8:19         ` Jan Beulich
  -1 siblings, 2 replies; 8+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-11-01 22:05 UTC (permalink / raw)
  To: Jan Beulich
  Cc: rientjes, jeremy, x86, tglx, torvalds, xen-devel, mingo,
	linux-kernel, hpa

On Thu, Nov 01, 2012 at 08:04:58PM +0000, Jan Beulich wrote:
> >>> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> 11/01/12 1:49 PM >>>
> >On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
> >> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
> >> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
> >> resulting in the following link error:
> >> 
> >> drivers/built-in.o: In function `dbgp_reset_prep':
> >> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
> >> drivers/built-in.o: In function `dbgp_external_startup':
> >> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'
> >
> >There is another patch that needs to be Acked and picked up by
> >Greg KH that fixes this.
> >
> >Let me poke Jan Beulich to repost it with the appropiate Acks.
> 
> It's been picked up already, but another dependency problem was found with
> it (due to not having used CONFIG_USB_SUPPORT as dependency, as I had
> first submitted).

Oh. I missed that part - so do you think that this patch should also
be used? Or do you think there is another way to fix this?

I am in transit right now so I can't prep a patch (and the laptop I've
is extremely slow to even do a test compile).
> 
> Jan
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
  2012-11-01 22:05     ` Konrad Rzeszutek Wilk
@ 2012-11-01 22:30       ` David Rientjes
  2012-11-02  8:19         ` Jan Beulich
  1 sibling, 0 replies; 8+ messages in thread
From: David Rientjes @ 2012-11-01 22:30 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Jan Beulich, jeremy, x86, tglx, torvalds, xen-devel, mingo,
	linux-kernel, hpa

On Thu, 1 Nov 2012, Konrad Rzeszutek Wilk wrote:

> Oh. I missed that part - so do you think that this patch should also
> be used? Or do you think there is another way to fix this?
> 

Appears to be fixed by d99e65bda806 ("USB: fix build with XEN and 
EARLY_PRINTK_DBGP enabled but USB_SUPPORT disabled") as of this morning's 
tree which relies on CONFIG_USB, which effectively requires 
CONFIG_USB_SUPPORT that this patch provides, so feel free to drop mine.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
  2012-11-01 22:05     ` Konrad Rzeszutek Wilk
@ 2012-11-02  8:19         ` Jan Beulich
  2012-11-02  8:19         ` Jan Beulich
  1 sibling, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2012-11-02  8:19 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: rientjes, jeremy, x86, tglx, torvalds, xen-devel, mingo,
	linux-kernel, hpa

>>> On 01.11.12 at 23:05, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Thu, Nov 01, 2012 at 08:04:58PM +0000, Jan Beulich wrote:
>> >>> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> 11/01/12 1:49 PM >>>
>> >On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
>> >> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
>> >> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
>> >> resulting in the following link error:
>> >> 
>> >> drivers/built-in.o: In function `dbgp_reset_prep':
>> >> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
>> >> drivers/built-in.o: In function `dbgp_external_startup':
>> >> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'
>> >
>> >There is another patch that needs to be Acked and picked up by
>> >Greg KH that fixes this.
>> >
>> >Let me poke Jan Beulich to repost it with the appropiate Acks.
>> 
>> It's been picked up already, but another dependency problem was found with
>> it (due to not having used CONFIG_USB_SUPPORT as dependency, as I had
>> first submitted).
> 
> Oh. I missed that part - so do you think that this patch should also
> be used? Or do you think there is another way to fix this?
> 
> I am in transit right now so I can't prep a patch (and the laptop I've
> is extremely slow to even do a test compile).

Alan and I settled on relaxing the condition in ehci-dbgp.c to
IS_ENABLED(USB). But it's not clear to me if I should send an
incremental patch or a replacement one (neither he nor Greg
answered my respective inquiry).

Jan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled
@ 2012-11-02  8:19         ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2012-11-02  8:19 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: rientjes, jeremy, x86, tglx, torvalds, xen-devel, mingo,
	linux-kernel, hpa

>>> On 01.11.12 at 23:05, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Thu, Nov 01, 2012 at 08:04:58PM +0000, Jan Beulich wrote:
>> >>> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> 11/01/12 1:49 PM >>>
>> >On Wed, Oct 31, 2012 at 10:42:30PM -0700, David Rientjes wrote:
>> >> CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no 
>> >> definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() 
>> >> resulting in the following link error:
>> >> 
>> >> drivers/built-in.o: In function `dbgp_reset_prep':
>> >> (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep'
>> >> drivers/built-in.o: In function `dbgp_external_startup':
>> >> (.text+0x1e0d55): undefined reference to `xen_dbgp_external_startup'
>> >
>> >There is another patch that needs to be Acked and picked up by
>> >Greg KH that fixes this.
>> >
>> >Let me poke Jan Beulich to repost it with the appropiate Acks.
>> 
>> It's been picked up already, but another dependency problem was found with
>> it (due to not having used CONFIG_USB_SUPPORT as dependency, as I had
>> first submitted).
> 
> Oh. I missed that part - so do you think that this patch should also
> be used? Or do you think there is another way to fix this?
> 
> I am in transit right now so I can't prep a patch (and the laptop I've
> is extremely slow to even do a test compile).

Alan and I settled on relaxing the condition in ehci-dbgp.c to
IS_ENABLED(USB). But it's not clear to me if I should send an
incremental patch or a replacement one (neither he nor Greg
answered my respective inquiry).

Jan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-02  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01  5:42 [patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled David Rientjes
2012-11-01 12:49 ` Konrad Rzeszutek Wilk
2012-11-01 20:04   ` Jan Beulich
2012-11-01 20:04     ` Jan Beulich
2012-11-01 22:05     ` Konrad Rzeszutek Wilk
2012-11-01 22:30       ` David Rientjes
2012-11-02  8:19       ` Jan Beulich
2012-11-02  8:19         ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.