SSB/b44 build failure
Subsystems (2)
Hi,
In 2.6.21-rc3-mm2, with CONFIG_SSB=y but all other SSB kconfig symbols disabled, I get this (on x86_64):
drivers/built-in.o: In function `b44_init':
b44.c:(.init.text+0x6e04): undefined reference to ssb_pcihost_register' b44.c:(.init.text+0x6e2c): undefined reference to ssb_pcihost_unregister' drivers/built-in.o: In function `b44_cleanup':
b44.c:(.exit.text+0x63b): undefined reference to `ssb_pcihost_unregister'
make: *** [.tmp_vmlinux1] Error 1
---
~Randy
I don't have time to look into a fix for it.
Quoted 11 lines · Randy Dunlap
Hi,
In 2.6.21-rc3-mm2, with
CONFIG_SSB=ybut all other SSB kconfig symbols disabled, I get this (onx86_64):
drivers/built-in.o: In function `b44_init':
b44.c:(.init.text+0x6e04): undefined reference tossb_pcihost_register' b44.c:(.init.text+0x6e2c): undefined reference tossb_pcihost_unregister'drivers/built-in.o: In function `b44_cleanup':
b44.c:(.exit.text+0x63b): undefined reference to `ssb_pcihost_unregister'
make: *** [.tmp_vmlinux1] Error 1
FWIW, this is coming from the port of b44 to use the SSB bus which I'm carrying in the wireless-dev tree.
SSB (i.e. "Sonics Silicon Backplane") is a bus used in Broadcom SoCs including the b44 and bcm43xx hardware. The SSB bus driver and the b44 port to SSB is being developed by Michael Buesch, the maintainer of the bcm43xx driver. I've been carrying the b44 SSB port in my tree for Michael's convenience. Just an FYI for those wondering what SSB is...
John
P.S. How about this patch?
From: John W. Linville <[email protected]>
[PATCH] b44: make B44_PCI select SSB_PCIHOST in drivers/net/Kconfig
--- drivers/net/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/Kconfig +1 -0
@@ -1402,6 +1402,7 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST default y help Support for b44 PCI devices.
Signature · 2 lines
John W. Linville [email protected]
Quoted 40 lines · John W. Linville
Quoted 11 lines · Randy Dunlap
Hi,
In 2.6.21-rc3-mm2, with
CONFIG_SSB=ybut all other SSB kconfig symbols disabled, I get this (onx86_64):
drivers/built-in.o: In function `b44_init':
b44.c:(.init.text+0x6e04): undefined reference tossb_pcihost_register' b44.c:(.init.text+0x6e2c): undefined reference tossb_pcihost_unregister'drivers/built-in.o: In function `b44_cleanup':
b44.c:(.exit.text+0x63b): undefined reference to `ssb_pcihost_unregister'
make: *** [.tmp_vmlinux1] Error 1FWIW, this is coming from the port of b44 to use the SSB bus which I'm carrying in the wireless-dev tree.
SSB (i.e. "Sonics Silicon Backplane") is a bus used in Broadcom SoCs including the b44 and bcm43xx hardware. The SSB bus driver and the b44 port to SSB is being developed by Michael Buesch, the maintainer of the bcm43xx driver. I've been carrying the b44 SSB port in my tree for Michael's convenience. Just an FYI for those wondering what SSB is...
John
P.S. How about this patch?From: John W. Linville <[email protected]>
[PATCH] b44: make
B44_PCIselectSSB_PCIHOSTindrivers/net/KconfigSigned-off-by John W. Linville <[email protected]>--- drivers/net/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/net/Kconfig +0
-0
drivers/net/Kconfig config B44 · line 1408
Quoted 7 lines
drivers/net/Kconfig +1
-0@@ -1402,6 +1402,7 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST default y help Support for b44 PCI devices.
This also requires a depends or select on SSB.
Quoted 1 line
John W. Linville
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 17 lines · Adrian Bunk
drivers/net/Kconfig config B44 · line 1408
Quoted 12 lines · John W. Linville
drivers/net/Kconfig +1
-0@@ -1402,6 +1402,7 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST default y help Support for b44 PCI devices.This also requires a depends or select on SSB.
It depends on B44, which selects SSB.
John
Signature · 2 lines
John W. Linville [email protected]
Quoted 19 lines · John W. Linville
Quoted 17 lines · Adrian Bunk
drivers/net/Kconfig config B44 · line 1408
Quoted 12 lines · John W. Linville
drivers/net/Kconfig +1
-0@@ -1402,6 +1402,7 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST default y help Support for b44 PCI devices.This also requires a depends or select on SSB.
Quoted 1 line
It depends on B44, which selects SSB.
Oops, you are correct.
Quoted 1 line
John
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 36 lines · Adrian Bunk
Quoted 35 lines · John W. Linville
Quoted 11 lines · Randy Dunlap
Hi,
In 2.6.21-rc3-mm2, with
CONFIG_SSB=ybut all other SSB kconfig symbols disabled, I get this (onx86_64):
drivers/built-in.o: In function `b44_init':
b44.c:(.init.text+0x6e04): undefined reference tossb_pcihost_register' b44.c:(.init.text+0x6e2c): undefined reference tossb_pcihost_unregister'drivers/built-in.o: In function `b44_cleanup':
b44.c:(.exit.text+0x63b): undefined reference to `ssb_pcihost_unregister'
make: *** [.tmp_vmlinux1] Error 1FWIW, this is coming from the port of b44 to use the SSB bus which I'm carrying in the wireless-dev tree.
SSB (i.e. "Sonics Silicon Backplane") is a bus used in Broadcom SoCs including the b44 and bcm43xx hardware. The SSB bus driver and the b44 port to SSB is being developed by Michael Buesch, the maintainer of the bcm43xx driver. I've been carrying the b44 SSB port in my tree for Michael's convenience. Just an FYI for those wondering what SSB is...
John
P.S. How about this patch?From: John W. Linville <[email protected]>
[PATCH] b44: make
B44_PCIselectSSB_PCIHOSTindrivers/net/KconfigSigned-off-by John W. Linville <[email protected]>--- drivers/net/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 15 lines
drivers/net/Kconfig config B44 · line 1408
Quoted 12 lines
drivers/net/Kconfig +1
-0@@ -1402,6 +1402,7 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST default y help Support for b44 PCI devices.This also requires a depends or select on SSB.
Sorry for this stupid bug. I'm to blame. :)
The SSB config is already selected by B44. B44_PCI is for adding the PCI support routines.
The following patch is the right one to fix the issue completely.
drivers/net/Kconfig +2 -0
@@ -1402,6 +1402,8 @@ config B44 config B44_PCI bool "Broadcom 4400 PCI device support" depends on B44 && NET_PCI + select SSB_PCIHOST + select SSB_DRIVER_PCICORE default y help Support for b44 PCI devices.
Signature · 1 line
Greetings Michael.
Quoted 8 lines · John W. Linville
FWIW, this is coming from the port of b44 to use the SSB bus which I'm carrying in the wireless-dev tree.
Quoted 1 line
SSB (i.e. "Sonics Silicon Backplane") is a bus used in Broadcom SoCs including the b44 and bcm43xx hardware. The SSB bus driver and the b44 port to SSB is being developed by Michael Buesch, the maintainer of the bcm43xx driver. I've been carrying the b44 SSB port in my tree for Michael's convenience. Just an FYI for those wondering what SSB is...
Btw, what's the reason this is in wireless-dev? Could we please merge this code into mainline soonish (aka 2.6.22) instead of interwinding it with totally unrelated wireless changes?
Quoted 10 lines · Christoph Hellwig
Quoted 8 lines · John W. Linville
FWIW, this is coming from the port of b44 to use the SSB bus which I'm carrying in the wireless-dev tree.
Quoted 1 line
SSB (i.e. "Sonics Silicon Backplane") is a bus used in Broadcom SoCs including the b44 and bcm43xx hardware. The SSB bus driver and the b44 port to SSB is being developed by Michael Buesch, the maintainer of the bcm43xx driver. I've been carrying the b44 SSB port in my tree for Michael's convenience. Just an FYI for those wondering what SSB is...
Quoted 3 lines
Btw, what's the reason this is in wireless-dev? Could we please merge this code into mainline soonish (aka 2.6.22) instead of interwinding it with totally unrelated wireless changes?
nono, don't. SSB is still in heavy development and this would slow it down by magnitudes.
The reason it's in wireless-dev is, because b44-ssb is simply just a "sideeffect" of ssb. ssb is mainly written for bcm43xx. That b44 also has a ssb bus is cool, so it can re-use the code. But there's _no_ reason to get ssb mainline without bcm43xx going mainline, too. b44-mainline does not depend on ssb. Current mainline has the ssb code built into b44. The b44 port in wireless-dev just rips that code out and uses the ssb subsystem (so it also adds
a few features to b44. For example the ability to dump and write the EEPROM).
It's really helpful to have the development of b44-ssb in wireless-dev, because there still are heavy changes in ssb. Being required to merge a ssb change through mainline before I can implement a new feature (or fix a bug) in bcm43xx-dev is just not acceptable.
The _final_ merging is another story. I think a few days before wireless-dev is merged mainline ssb and b44-ssb should be merged mainline seperately. Just to make it clear that these are not wireless related. (ssb is not wireless related, too. Strictly said).
Short: "totally unrelated wireless changes" is a false statement ;)
Signature · 1 line
Greetings Michael.