linux_dsm_epyc7002/drivers/net/wireless
Arnd Bergmann 16d571bb0f rt2x00: convert rt2800_rfcsr_read return type
With CONFIG_KASAN enabled and gcc-7, we get a warning about rather high
stack usage (with a private patch set I have to turn on this warning,
which I intend to get into the next kernel release):

wireless/ralink/rt2x00/rt2800lib.c: In function 'rt2800_bw_filter_calibration':
wireless/ralink/rt2x00/rt2800lib.c:7990:1: error: the frame size of 2144 bytes is larger than 1536 bytes [-Werror=frame-larger-than=]

The problem is that KASAN inserts a redzone around each local variable
that gets passed by reference, and the newly added function has a lot
of them.

This is a semi-automated conversion to change rt2800_rfcsr_read to return
the register contents instead of passing them by value, resulting in
much better object code. The majority of the patch was done using:

sed -i 's:\(rt2800_rfcsr_read(.*, .*\), &\(.*\));:\2 = \1);:' \
    -i 's:\(rt2800_rfcsr_read_bank(.*, .*\), &\(.*\));:\2 = \1);:' \
        drivers/net/wireless/ralink/rt2x00/rt2800lib.c

Fixes: 41977e86c9 ("rt2x00: add support for MT7620")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-05-24 16:45:32 +03:00
..
admtek wireless: Set NL80211_EXT_FEATURE_CQM_RSSI_LIST in multiple drivers 2017-03-06 09:21:39 +01:00
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2017-05-19 11:47:44 +03:00
atmel My last pull request has been a while, we now have: 2017-04-20 13:54:40 -04:00
broadcom brcmfmac: remove setting IBSS mode when stopping AP 2017-05-22 18:21:10 +03:00
cisco Annotate hardware config module parameters in drivers/net/wireless/ 2017-04-20 12:02:32 +01:00
intel iwlegacy: warn when enabling power save 2017-05-24 16:43:11 +03:00
intersil p54: allocate enough space for ->used_rxkeys 2017-05-22 18:30:09 +03:00
marvell libertas: Remove function entry/exit debugging 2017-05-24 16:44:28 +03:00
mediatek Another set of patches for -next: 2017-04-28 14:41:15 -04:00
ralink rt2x00: convert rt2800_rfcsr_read return type 2017-05-24 16:45:32 +03:00
realtek rtlwifi: rtl8723ae: fix spelling mistake: "Coexistance" -> "Coexistence" 2017-05-18 17:15:00 +03:00
rsi rsi: rsi_91x_core: Use time_after time comparison 2017-05-24 16:39:41 +03:00
st mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
ti wlcore: fix 64K page support 2017-05-24 16:42:27 +03:00
zydas My last pull request has been a while, we now have: 2017-04-20 13:54:40 -04:00
Kconfig wireless: deprecate WDS and disable by default 2016-10-27 09:08:43 +02:00
mac80211_hwsim.c mac80211: properly remove RX_ENC_FLAG_40MHZ 2017-05-08 11:11:56 +02:00
mac80211_hwsim.h mac80211_hwsim: fix command documentation indentation 2017-03-06 09:21:48 +01:00
Makefile
ray_cs.c ray_cs: Avoid reading past end of buffer 2017-05-22 18:27:22 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c Another set of patches for -next: 2017-04-28 14:41:15 -04:00
wl3501_cs.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
wl3501.h