aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-05-26 12:14:34 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-05-26 12:14:34 +0000
commit2679f7071a5c3ddd97d927f7b38673cdc7885a97 (patch)
tree90bebd9bd31c0be18b3976a88d8601df2645e6f1 /package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch
parent17c4ddb6b92ef06c1918abecd3de8355afb4ab2d (diff)
downloadupstream-2679f7071a5c3ddd97d927f7b38673cdc7885a97.tar.gz
upstream-2679f7071a5c3ddd97d927f7b38673cdc7885a97.tar.bz2
upstream-2679f7071a5c3ddd97d927f7b38673cdc7885a97.zip
mac80211: backport today's brcmfmac changes
It should improve msgbuf throughput (PCIe devices like BCM43602). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45767 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch')
-rw-r--r--package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch b/package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch
new file mode 100644
index 0000000000..9b4609fb75
--- /dev/null
+++ b/package/kernel/mac80211/patches/367-brcmfmac-avoid-gcc-5.1-warning.patch
@@ -0,0 +1,30 @@
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Tue, 12 May 2015 23:54:25 +0200
+Subject: [PATCH] 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>
+---
+
+--- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c
++++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c
+@@ -635,7 +635,7 @@ static int brcmf_fws_hanger_pushpkt(stru
+ return 0;
+ }
+
+-static int brcmf_fws_hanger_poppkt(struct brcmf_fws_hanger *h,
++static inline int brcmf_fws_hanger_poppkt(struct brcmf_fws_hanger *h,
+ u32 slot_id, struct sk_buff **pktout,
+ bool remove_item)
+ {