Star64_linux/drivers/net/wireless/ath/ath10k
Arnd Bergmann ff414f31ce ath10k: work around uninitialized vht_pfr variable
As clang points out, the vht_pfr is assigned to a struct member
without being initialized in one case:

drivers/net/wireless/ath/ath10k/mac.c:7528:7: error: variable 'vht_pfr' is used uninitialized whenever 'if' condition
      is false [-Werror,-Wsometimes-uninitialized]
                if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7551:20: note: uninitialized use occurs here
                arvif->vht_pfr = vht_pfr;
                                 ^~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7528:3: note: remove the 'if' if its condition is always true
                if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7483:12: note: initialize the variable 'vht_pfr' to silence this warning
        u8 vht_pfr;

Add an explicit but probably incorrect initialization here.
I suspect we want a better fix here, but chose this approach to
illustrate the issue.

Fixes: 8b97b055dc ("ath10k: fix failure to set multiple fixed rate")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-07-15 20:50:04 +03:00
..
ahb.c
ahb.h
bmi.c
bmi.h
ce.c
ce.h
core.c ath10k: add new hw_ops for sdio chip 2019-06-27 20:58:48 +03:00
core.h ath10k: Add WMI diag fw logging support for WCN3990 2019-06-25 16:16:54 +03:00
coredump.c
coredump.h
debug.c
debug.h ath10k: add support for controlling tx power to a station 2019-06-25 16:14:00 +03:00
debugfs_sta.c
hif.h ath10k: Add WMI diag fw logging support for WCN3990 2019-06-25 16:16:54 +03:00
htc.c
htc.h
htt.c
htt.h
htt_rx.c ath10k: Move non-fatal warn logs to dbg level for SDIO chip 2019-06-28 22:11:54 +03:00
htt_tx.c
hw.c ath10k: add new hw_ops for sdio chip 2019-06-27 20:58:48 +03:00
hw.h ath10k: add new hw_ops for sdio chip 2019-06-27 20:58:48 +03:00
Kconfig ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
mac.c ath10k: work around uninitialized vht_pfr variable 2019-07-15 20:50:04 +03:00
mac.h
Makefile
p2p.c
p2p.h
pci.c ath10k: pci: remove unnecessary casts 2019-06-28 22:14:15 +03:00
pci.h
qmi.c ath10k: Fix memory leak in qmi 2019-06-28 22:09:11 +03:00
qmi.h ath10k: Add WMI diag fw logging support for WCN3990 2019-06-25 16:16:54 +03:00
qmi_wlfw_v01.c
qmi_wlfw_v01.h
rx_desc.h
sdio.c ath10k: destroy sdio workqueue while remove sdio module 2019-06-28 22:12:59 +03:00
sdio.h
snoc.c ath10k: Add WMI diag fw logging support for WCN3990 2019-06-25 16:16:54 +03:00
snoc.h
spectral.c
spectral.h
swap.c ath10k: remove unnecessary 'out of memory' message 2019-06-28 22:14:06 +03:00
swap.h
targaddrs.h
testmode.c
testmode.h
testmode_i.h
thermal.c
thermal.h
trace.c
trace.h
txrx.c
txrx.h
usb.c
usb.h
wmi-ops.h
wmi-tlv.c ath10k: Add peer delete response event 2019-06-25 16:12:24 +03:00
wmi-tlv.h ath10k: Add peer delete response event 2019-06-25 16:12:24 +03:00
wmi.c
wmi.h ath10k: add support for controlling tx power to a station 2019-06-25 16:14:00 +03:00
wow.c
wow.h