[patch] usb: fix ssb_ohci_probe() build bug

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Buesch <mb@...>
Cc: Al Viro <viro@...>, <gregkh@...>, David Brownell <dbrownell@...>, John W. Linville <linville@...>, <linux-kernel@...>
Date: Monday, October 15, 2007 - 1:43 pm

* Ingo Molnar <mingo@elte.hu> wrote:


the patch below fixes this for me.

	Ingo

----------------------->
Subject: usb: fix ssb_ohci_probe() build bug
From: Ingo Molnar <mingo@elte.hu>

fix ssb_ohci_probe() build bug:

 drivers/built-in.o: In function `ssb_ohci_probe':
 ohci-hcd.c:(.text+0xbff39): undefined reference to `ssb_device_enable'
 ohci-hcd.c:(.text+0xbff6f): undefined reference to `ssb_admatch_base'
 ohci-hcd.c:(.text+0xbff8b): undefined reference to `ssb_admatch_size'
 ohci-hcd.c:(.text+0xbffe5): undefined reference to `ssb_device_disable'
 [...]

the reason was that this Kconfig combination was allowed:

 CONFIG_SSB=m
 CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_HCD_SSB=y

the fix is to require a modular USB_OHCI_HCD build when SSB is modular.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/usb/host/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/usb/host/Kconfig
===================================================================
--- linux.orig/drivers/usb/host/Kconfig
+++ linux/drivers/usb/host/Kconfig
@@ -156,7 +156,7 @@ config USB_OHCI_HCD_PCI
 
 config USB_OHCI_HCD_SSB
 	bool "OHCI support for Broadcom SSB OHCI core"
-	depends on USB_OHCI_HCD && SSB && EXPERIMENTAL
+	depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
 	default n
 	---help---
 	  Support for the Sonics Silicon Backplane (SSB) attached
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[bug] usb build failure, latest -git, Ingo Molnar, (Sat Oct 13, 11:29 pm)
Re: [bug] usb build failure, latest -git, Michael Buesch, (Sun Oct 14, 5:32 am)
Re: [bug] usb build failure, latest -git, Gabriel C, (Sat Oct 13, 11:40 pm)
Re: [bug] usb build failure, latest -git, Al Viro, (Sat Oct 13, 11:35 pm)
Re: [bug] usb build failure, latest -git, Ingo Molnar, (Mon Oct 15, 6:53 am)
Re: [bug] usb build failure, latest -git, Michael Buesch, (Mon Oct 15, 8:58 am)
[build bug] drivers/ssb build failure, latest -git, Ingo Molnar, (Mon Oct 15, 9:50 am)
Re: [build bug] drivers/ssb build failure, latest -git, Ingo Molnar, (Mon Oct 15, 1:38 pm)
[patch] usb: fix ssb_ohci_probe() build bug, Ingo Molnar, (Mon Oct 15, 1:43 pm)
Re: [patch] usb: fix ssb_ohci_probe() build bug, Michael Buesch, (Mon Oct 15, 2:08 pm)
Re: [patch] usb: fix ssb_ohci_probe() build bug, Ingo Molnar, (Wed Oct 24, 3:46 pm)
Re: [patch] usb: fix ssb_ohci_probe() build bug, Greg KH, (Wed Oct 24, 4:21 pm)
[patch] ssb: fix build failure, Ingo Molnar, (Mon Oct 15, 9:56 am)
Re: [bug] usb build failure, latest -git, Ingo Molnar, (Sun Oct 14, 12:04 am)