diff options
| author | Arnd Bergmann <[email protected]> | 2023-05-05 16:11:25 +0300 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-05-09 19:46:02 +0300 |
| commit | 695df2f417d25202bdac9cde3c82d2acb6492b4d (patch) | |
| tree | 2362cf986011b9dd3406e13cc4e5bd5ee4060d7c /tools/perf/scripts/python/futex-contention.py | |
| parent | 91dce40914337bc47ac95e00f2b055169ee53697 (diff) | |
wifi: ath: work around false-positive stringop-overread warning
In a rare arm64 randconfig build, I got multiple warnings for ath11k
and ath12k:
In function 'ath11k_peer_assoc_h_ht',
inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2665:2:
drivers/net/wireless/ath/ath11k/mac.c:1709:13: error: 'ath11k_peer_assoc_h_ht_masked' reading 10 bytes from a region of size 0 [-Werror=stringop-overread]
1709 | if (ath11k_peer_assoc_h_ht_masked(ht_mcs_mask))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This happens whenever gcc-13 fails to inline one of the functions
that take a fixed-length array argument but gets passed a pointer.
Change these functions to all take a regular pointer argument
instead.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions