]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: avoid gcc-5.1 warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 12 May 2015 21:54:25 +0000 (23:54 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 10:53:48 +0000 (13:53 +0300)
commit7eea12ed0d902e25182f264796799eda9fb3969e
tree8c8a2df595c7493defbba2f38af54bc96a0443dd
parentffc97b1b678e814bdd736cf3d6d2102b39b1fac7
brcmfmac: avoid gcc-5.1 warning

gcc-5.0 gained a new warning in the fwsignal portion of the brcmfmac
driver:

drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c: In function 'brcmf_fws_txs_process':
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c:1478:8: warning: 'skb' may be used uninitialized in this function [-Wmaybe-uninitialized]

This is a false positive, and marking the brcmf_fws_hanger_poppkt function
as 'static inline' makes the warning go away. I have checked the object
file output and while a little code gets moved around, the size of
the binary remains identical.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c