From: Colin Ian King Date: Mon, 7 Mar 2022 22:32:27 +0000 (+0000) Subject: brcmfmac: make the read-only array pktflags static const X-Git-Tag: v6.1-rc5~1746^2~110^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2386f64ceb33f1a27adbee250c9a280ba6b95d01;p=platform%2Fkernel%2Flinux-starfive.git brcmfmac: make the read-only array pktflags static const Don't populate the read-only array pktflags on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220307223227.165963-1-colin.i.king@gmail.com --- diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index b2fb9fc..f0ad1e2 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -4623,7 +4623,7 @@ exit: s32 brcmf_vif_clear_mgmt_ies(struct brcmf_cfg80211_vif *vif) { - s32 pktflags[] = { + static const s32 pktflags[] = { BRCMF_VNDR_IE_PRBREQ_FLAG, BRCMF_VNDR_IE_PRBRSP_FLAG, BRCMF_VNDR_IE_BEACON_FLAG