ath9k: fix handling of tx headroom for padding
[15.05/openwrt.git] / package / kernel / mac80211 / patches / 367-brcmfmac-avoid-gcc-5.1-warning.patch
1 From: Arnd Bergmann <arnd@arndb.de>
2 Date: Tue, 12 May 2015 23:54:25 +0200
3 Subject: [PATCH] brcmfmac: avoid gcc-5.1 warning
4
5 gcc-5.0 gained a new warning in the fwsignal portion of the brcmfmac
6 driver:
7
8 drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c: In function 'brcmf_fws_txs_process':
9 drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c:1478:8: warning: 'skb' may be used uninitialized in this function [-Wmaybe-uninitialized]
10
11 This is a false positive, and marking the brcmf_fws_hanger_poppkt function
12 as 'static inline' makes the warning go away. I have checked the object
13 file output and while a little code gets moved around, the size of
14 the binary remains identical.
15
16 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
18 ---
19
20 --- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c
21 +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c
22 @@ -635,7 +635,7 @@ static int brcmf_fws_hanger_pushpkt(stru
23         return 0;
24  }
25  
26 -static int brcmf_fws_hanger_poppkt(struct brcmf_fws_hanger *h,
27 +static inline int brcmf_fws_hanger_poppkt(struct brcmf_fws_hanger *h,
28                                           u32 slot_id, struct sk_buff **pktout,
29                                           bool remove_item)
30  {