brcmfmac: fix BRCMF_FW_NVRAM_DEF macro for older gcc compilers
PATCH 1/1 brcmfmac: fix BRCMF_FW_NVRAM_DEF macro for older gcc compilers
With gcc < 4.3 __UNIQUE_ID does not create unique ids with the macro BRCMF_FW_NVRAM_DEF. Fix this by removing the MODULE_FIRMWARE instance for the nvram file. This file is not in linux-firmware repo so it may not be needed anyway. Otherwise consider this as a temporary fix.
---
Hi Kalle,
Here a quick fix for the __UNIQUE_ID issue. Looking at the other issue right now, which seems a bit more complicated.
Regards,
Arend
--- drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h +1 -2
@@ -47,8 +47,7 @@ static const char BRCM_ ## fw_nvram_name ## _FIRMWARE_NAME[] = \BRCMF_FW_DEFAULT_PATH fw; \ static const char BRCM_ ## fw_nvram_name ## _NVRAM_NAME[] = \ BRCMF_FW_DEFAULT_PATH nvram; \ -MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw); \ -MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH nvram) +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw);#define BRCMF_FW_DEF (fw_name, fw) \ static const char BRCM_ ## fw_name ## _FIRMWARE_NAME[] = \
Signature · 1 line
1.9.1
Quoted 7 lines · Arend van Spriel
With gcc < 4.3
__UNIQUE_IDdoes not create unique ids with the macroBRCMF_FW_NVRAM_DEF. Fix this by removing theMODULE_FIRMWAREinstance for the nvram file. This file is not in linux-firmware repo so it may not be needed anyway. Otherwise consider this as a temporary fix.Reported-by Geert Uytterhoeven <[email protected]>Signed-off-by Arend van Spriel <[email protected]>
Thanks. Geert, it would be great if you could test this.
Dave, if Geert says the patch is ok do you mind taking this directly? I would like to fix this build breakage quickly.
https://patchwork.kernel.org/patch/8049181/
Signature · 1 line
Kalle Valo
Geert Uytterhoeven
Tested-byQuoted 11 lines · Kalle Valo
Quoted 7 lines · Arend van Spriel
With gcc < 4.3
__UNIQUE_IDdoes not create unique ids with the macroBRCMF_FW_NVRAM_DEF. Fix this by removing theMODULE_FIRMWAREinstance for the nvram file. This file is not in linux-firmware repo so it may not be needed anyway. Otherwise consider this as a temporary fix.Reported-by Geert Uytterhoeven <[email protected]>Signed-off-by Arend van Spriel <[email protected]>Thanks. Geert, it would be great if you could test this.
Thanks, this fixes this build failure, so
(unfortunately) now up to the next one...
Quoted 6 lines
Dave, if Geert says the patch is ok do you mind taking this directly? I would like to fix this build breakage quickly.
https://patchwork.kernel.org/patch/8049181/
Acked-by Kalle Valo <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 1 line · Geert Uytterhoeven
(unfortunately) now up to the next one...
Please ignore. I used
"make drivers/net/wireless/broadcom/brcm80211/brcmfmac/", which didn't pick up
subdir-ccflags-$(CONFIG_BRCMDBG) += -DDEBUG
in drivers/net/wireless/broadcom/brcm80211/Makefile
It builds fine with doing a normal build.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 4 lines · Geert Uytterhoeven
Quoted 1 line · Geert Uytterhoeven
(unfortunately) now up to the next one...
Quoted 8 lines
Please ignore. I used
"makedrivers/net/wireless/broadcom/brcm80211/brcmfmac/", which didn't pick upsubdir-ccflags-$(CONFIG_BRCMDBG) += -DDEBUGin
drivers/net/wireless/broadcom/brcm80211/MakefileIt builds fine with doing a normal build.
I see. Was not sure whether "next one" meant "brcmfmac" or not.
Regards,
Arend
Quoted 15 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Kalle Valo <[email protected]>
Date: Mon, 18 Jan 2016 10:14:27 +0200
Quoted 10 lines
Quoted 7 lines · Arend van Spriel
With gcc < 4.3
__UNIQUE_IDdoes not create unique ids with the macroBRCMF_FW_NVRAM_DEF. Fix this by removing theMODULE_FIRMWAREinstance for the nvram file. This file is not in linux-firmware repo so it may not be needed anyway. Otherwise consider this as a temporary fix.Reported-by Geert Uytterhoeven <[email protected]>Signed-off-by Arend van Spriel <[email protected]>
Quoted 8 lines
Thanks. Geert, it would be great if you could test this.
Dave, if Geert says the patch is ok do you mind taking this directly? I would like to fix this build breakage quickly.
https://patchwork.kernel.org/patch/8049181/
Acked-by Kalle Valo <[email protected]>
Ok, applied, thanks.