2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-08 21:53:54 +08:00
linux-next/drivers/net/wireless/brcm80211
Arend van Spriel 5af47fb394 brcmfmac: fix sparse error 'bad constant expression'
The definition of BRCMF_EVENTING_MASK_LEN results in a sparse
error message

.../fweh.c:331:22: error: bad constant expression
.../fweh.c:388:22: error: bad constant expression
.../dhd_common.c:256:22: error: bad constant expression

This is caused by the use of roundup() in BRCMF_EVENTING_MASK_LEN
and it is used to allocate an array variable on the stack. Better
use DIV_ROUND_UP() macro.

Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-10-03 16:24:25 -04:00
..
brcmfmac brcmfmac: fix sparse error 'bad constant expression' 2013-10-03 16:24:25 -04:00
brcmsmac Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-09-05 14:54:29 -07:00
brcmutil brcmutil: simplify brcmu_pkt_free_skb() 2013-04-22 15:20:21 -04:00
include brcmfmac: add BCM4339 SDIO interface support 2013-10-03 16:24:24 -04:00
Kconfig brcmfmac: fix bus interface selection in Kconfig 2013-09-09 14:40:54 -04:00
Makefile brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00