ssb: host_soc depends on sprom
Subsystems (4)
PATCH 1/1 ssb: host_soc depends on sprom
Drivers that use the SSB sprom functionality typically 'select SSB_SPROM' from Kconfig, but CONFIG_SSB_HOST_SOC misses this, which results in a build failure unless at least one of the other drivers that selects it is enabled:
drivers/built-in.o: In function `ssb_host_soc_get_invariants':
(.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'
This adds the same select statement that is used elsewhere.
---
I'm not sure who the right person is to pick up the fix. The patch that introduced the problem was merged by Kalle through the iwlwifi tree.
drivers/ssb/Kconfig +1 -0
@@ -83,6 +83,7 @@ config SSB_SDIOHOST config SSB_HOST_SOC bool "Support for SSB bus on SoC" depends on SSB && BCM47XX_NVRAM + select SSB_SPROM help Host interface for a SSB directly mapped into memory. This is for some Broadcom SoCs from the BCM47xx and BCM53xx lines.
Quoted 8 lines · Arnd Bergmann
Drivers that use the SSB sprom functionality typically 'select
SSB_SPROM' fromKconfig, butCONFIG_SSB_HOST_SOCmisses this, which results in a build failure unless at least one of the other drivers that selects it is enabled:
drivers/built-in.o: In function `ssb_host_soc_get_invariants':
(.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'
Quoted 7 lines
This adds the same select statement that is used elsewhere.
Signed-off-by Arnd Bergmann <[email protected]>Fixes 541c9a84cd85 ("ssb: pick SoC invariants code from MIPS BCM47xx arch")---
I'm not sure who the right person is to pick up the fix. The patch that introduced the problem was merged by Kalle through the iwlwifi tree.
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
Signature · 1 line
Kalle Valo
Quoted 5 lines · Arnd Bergmann
Drivers that use the SSB sprom functionality typically 'select
SSB_SPROM' fromKconfig, butCONFIG_SSB_HOST_SOCmisses this, which results in a build failure unless at least one of the other drivers that selects it is enabled:
Quoted 7 lines
drivers/built-in.o: In function `ssb_host_soc_get_invariants':
(.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'This adds the same select statement that is used elsewhere.
Signed-off-by Arnd Bergmann <[email protected]>Fixes 541c9a84cd85 ("ssb: pick SoC invariants code from MIPS BCM47xx arch")
I missed this dependency, thanks, patch looks OK.
David Miller
maintainerFrom: Kalle Valo <[email protected]>
Date: Thu, 14 Jan 2016 08:46:29 +0200
Quoted 2 lines
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
+1
PATCH RESEND 1/1 ssb: mark ssb_bus_register as __maybe_unused
In reply to Kalle ValoThe SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]
This annotates the ssb_bus_register function as __maybe_unused to shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
---
Quoted 2 lines · On Thursday 14 January 2016 08:46:29 Kalle Valo wrote:
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
I found this in my backlog, and I believe it still applies. Can you take that one too?
drivers/ssb/main.c +4 -3
@@ -613,9 +613,10 @@ out:return err; } -static int ssb_bus_register (struct ssb_bus *bus, -ssb_invariants_func_t get_invariants, -unsigned long baseaddr) +static int __maybe_unused +ssb_bus_register (struct ssb_bus *bus, +ssb_invariants_func_t get_invariants, +unsigned long baseaddr) {int err;
Re: [PATCH, RESEND] ssb: mark ssb_bus_register as __maybe_unused
Quoted 6 lines · Arnd Bergmann
Quoted 2 lines · On Thursday 14 January 2016 08:46:29 Kalle Valo wrote:
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
I found this in my backlog, and I believe it still applies. Can you take that one too?
I'm not sure what you mean here, I can take any ssb patch if it's ok for Michael or Rafal :)
Just please submit the patch properly (with S-o-B line) and CC linux-wireless so that it goes to patchwork.
Signature · 1 line
Kalle Valo
Re: [PATCH, RESEND] ssb: mark ssb_bus_register as __maybe_unused
Quoted 6 lines · Kalle Valo
Quoted 4 lines · Arnd Bergmann
Quoted 2 lines · On Thursday 14 January 2016 08:46:29 Kalle Valo wrote:
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
Quoted 8 lines
Quoted 2 lines
I found this in my backlog, and I believe it still applies. Can you take that one too?
I'm not sure what you mean here, I can take any ssb patch if it's ok for Michael or Rafal :)
Just please submit the patch properly (with S-o-B line) and CC linux-wireless so that it goes to patchwork.
It was already sent once and Acked by Michael:
https://patchwork.kernel.org/patch/7543191/
The problem was not cc-ing linux-wireless so it wasn't picked by the linux-wireless patchwork.
Signature · 1 line
Rafa?
Re: [PATCH, RESEND] ssb: mark ssb_bus_register as __maybe_unused
Quoted 13 lines · Rafa? Mi?ecki
Quoted 12 lines · Kalle Valo
Quoted 6 lines · Arnd Bergmann
Quoted 2 lines · On Thursday 14 January 2016 08:46:29 Kalle Valo wrote:
I can take it. For historical reasons ssb patches go through my wireless-drivers trees.
I found this in my backlog, and I believe it still applies. Can you take that one too?
I'm not sure what you mean here, I can take any ssb patch if it's ok for Michael or Rafal :)
Quoted 8 lines
Quoted 2 lines
Just please submit the patch properly (with S-o-B line) and CC linux-wireless so that it goes to patchwork.
It was already sent once and Acked by Michael:
https://patchwork.kernel.org/patch/7543191/The problem was not cc-ing linux-wireless so it wasn't picked by the linux-wireless patchwork.
Ah, that's why I missed it. I only follow patchwork, I basically ignore patches which are sent via email. Arnd, can you please resend the patch and CC linux-wireless? Sorry for the trouble.
To avoid this in the future I think we should replace netdev with linux-wireless in the MAINTAINERS entry:
SONICS SILICON BACKPLANE DRIVER (SSB)
M: Michael Buesch <[email protected]> L: netdev at vger.kernel.org S: Maintained F: drivers/ssb/ F: include/linux/ssb/
Are people ok with that? Patches welcome :)
Signature · 1 line
Kalle Valo
Michael Büsch
maintainerssb: Set linux-wireless as MAINTAINERS list
ssb patches go through the linux-wireless tree.
Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.
---
MAINTAINERS +1 -1
@@ -10036,7 +10036,7 @@ F: drivers/net/ethernet/natsemi/sonic.* SONICS SILICON BACKPLANE DRIVER (SSB) M: Michael Buesch <[email protected]> -L: [email protected] +L: [email protected] S: Maintained F: drivers/ssb/ F: include/linux/ssb/
Signature · 1 line
Michael
Re: ssb: Set linux-wireless as MAINTAINERS list
Quoted 2 lines · Michael B?sch
ssb patches go through the linux-wireless tree.
Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.
Thanks Michael
PATCH 1/1 ssb: mark ssb_bus_register as __maybe_unused
In reply to Kalle ValoThe SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]
This annotates the ssb_bus_register function as __maybe_unused to shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
---
Resent to linux-wireless as requested
drivers/ssb/main.c +4 -3
@@ -613,9 +613,10 @@ out:return err; } -static int ssb_bus_register (struct ssb_bus *bus, -ssb_invariants_func_t get_invariants, -unsigned long baseaddr) +static int __maybe_unused +ssb_bus_register (struct ssb_bus *bus, +ssb_invariants_func_t get_invariants, +unsigned long baseaddr) {int err;
Re: [PATCH, RESEND^2] ssb: mark ssb_bus_register as __maybe_unused
Quoted 12 lines · Arnd Bergmann
The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]This annotates the
ssb_bus_registerfunction as__maybe_unusedto shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
Quoted 5 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code")Acked-by Michael Buesch <[email protected]>---
Resent to linux-wireless as requested
Thanks, and sorry for the hassle. I'm planning to push this to 4.5.
Signature · 1 line
Kalle Valo
Re: ssb: Set linux-wireless as MAINTAINERS list
In reply to Rafał MiłeckiQuoted 6 lines · Rafa? Mi?ecki
Quoted 2 lines · Michael B?sch
ssb patches go through the linux-wireless tree. Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.
Thanks Michael
Thanks from me also. I'm planning to send this to 4.5.
Signature · 1 line
Kalle Valo
Kalle Valo
AppliedRe: ssb: Set linux-wireless as MAINTAINERS list
In reply to Michael BüschQuoted 5 lines
ssb patches go through the linux-wireless tree.
Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.Signed-off-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo
Kalle Valo
AppliedRe: ssb: Set linux-wireless as MAINTAINERS list
In reply to Michael BüschQuoted 5 lines
ssb patches go through the linux-wireless tree.
Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.Signed-off-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo
Kalle Valo
AppliedRe: ssb: Set linux-wireless as MAINTAINERS list
In reply to Michael BüschQuoted 5 lines
ssb patches go through the linux-wireless tree.
Set the list to linux-wireless, so linux-wireless patchwork can catch the patches.Signed-off-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo
Kalle Valo
AppliedRe: [RESEND^2] ssb: mark ssb_bus_register as __maybe_unused
In reply to Arnd BergmannQuoted 13 lines
The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]This annotates the
ssb_bus_registerfunction as__maybe_unusedto shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
Quoted 3 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code")Acked-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo
Kalle Valo
AppliedRe: [RESEND^2] ssb: mark ssb_bus_register as __maybe_unused
In reply to Arnd BergmannQuoted 13 lines
The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]This annotates the
ssb_bus_registerfunction as__maybe_unusedto shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
Quoted 3 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code")Acked-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo
Kalle Valo
AppliedRe: [RESEND^2] ssb: mark ssb_bus_register as __maybe_unused
In reply to Arnd BergmannQuoted 13 lines
The SoC variant of the ssb code is now optional like the other ones, which means we can build the framwork without any front-end, but that results in a warning:
drivers/ssb/main.c:616:12: warning: 'ssb_bus_register' defined but not used [-Wunused-function]This annotates the
ssb_bus_registerfunction as__maybe_unusedto shut up the warning. A configuration like this will not work on any hardware of course, but we still want this to silently build without warnings if the configuration is allowed in the first place.
Quoted 3 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 845da6e58e19 ("ssb: add Kconfig entry for compiling SoC related code")Acked-by Michael Buesch <[email protected]>
Thanks, applied to wireless-drivers.git.
Kalle Valo