diff options
| author | Arnd Bergmann <[email protected]> | 2018-12-10 21:55:37 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2018-12-13 16:59:00 +0200 |
| commit | 412dd15c8177d93abe0c8787b83b31c5eb061405 (patch) | |
| tree | ec0773802ba8aa5e6d58a526ecef8ee99f515db8 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 29f6589140a10ece8c1d73f58043ea5b3473ab3e (diff) | |
brcmfmac: fix false-positive -Wmaybe-unintialized warning
When CONFIG_NO_AUTO_INLINE is set, we get a false-postive warning
for the brcmf_fw_request_nvram_done() function, after gcc figures
out that brcmf_fw_nvram_from_efi() might not set the 'data_len'
variable, but fails to notice that it always returns NULL:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c: In function 'brcmf_fw_request_nvram_done':
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c:560:11: error: 'data_len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
Mark it 'inline' to force gcc to understand this.
Fixes: ce2e6db554fa ("brcmfmac: Add support for getting nvram contents from EFI variables")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions