linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac
Arnd Bergmann c503dd38f8 brcmsmac: make some local variables 'static const' to reduce stack size
With KASAN and a couple of other patches applied, this driver is one
of the few remaining ones that actually use more than 2048 bytes of
kernel stack:

broadcom/brcm80211/brcmsmac/phy/phy_n.c: In function 'wlc_phy_workarounds_nphy_gainctrl':
broadcom/brcm80211/brcmsmac/phy/phy_n.c:16065:1: warning: the frame size of 3264 bytes is larger than 2048 bytes [-Wframe-larger-than=]
broadcom/brcm80211/brcmsmac/phy/phy_n.c: In function 'wlc_phy_workarounds_nphy':
broadcom/brcm80211/brcmsmac/phy/phy_n.c:17138:1: warning: the frame size of 2864 bytes is larger than 2048 bytes [-Wframe-larger-than=]

Here, I'm reducing the stack size by marking as many local variables as
'static const' as I can without changing the actual code.

This is the first of three patches to improve the stack usage in this
driver. It would be good to have this backported to stabl kernels
to get all drivers in 'allmodconfig' below the 2048 byte limit so
we can turn on the frame warning again globally, but I realize that
the patch is larger than the normal limit for stable backports.

The other two patches do not need to be backported.

Cc: <stable@vger.kernel.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-10-02 16:52:55 +03:00
..
phy brcmsmac: make some local variables 'static const' to reduce stack size 2017-10-02 16:52:55 +03:00
aiutils.c
aiutils.h
ampdu.c
ampdu.h
antsel.c
antsel.h
brcms_trace_brcmsmac_msg.h
brcms_trace_brcmsmac_tx.h
brcms_trace_brcmsmac.h
brcms_trace_events.c
brcms_trace_events.h
channel.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
channel.h
d11.h
debug.c
debug.h
dma.c brcmsmac: Free packet if dma_mapping_error() fails in dma_rxfill 2016-07-19 21:14:20 +03:00
dma.h
led.c
led.h
mac80211_if.c wireless: Set NL80211_EXT_FEATURE_CQM_RSSI_LIST in multiple drivers 2017-03-06 09:21:39 +01:00
mac80211_if.h
main.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
main.h
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
phy_shim.c
phy_shim.h
pmu.c
pmu.h
pub.h
rate.c
rate.h
scb.h
stf.c brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get() 2016-07-19 21:14:20 +03:00
stf.h
types.h
ucode_loader.c
ucode_loader.h