diff options
author | Kalle Valo <quic_kvalo@quicinc.com> | 2023-12-14 18:17:40 +0200 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2023-12-15 17:58:51 +0200 |
commit | fd6ed1772b2c639370b7b41602d4c925dbd003d4 (patch) | |
tree | 9fcdfd7f8ffc41b92b6da72d9a7597ad57622001 /tools/testing/selftests/bpf/progs/bpf_tracing_net.h | |
parent | e75fda64f0fee2599e28b123594375ccd8991507 (diff) |
wifi: ath11k: workaround too long expansion sparse warnings
In v6.7-rc1 sparse warns:
drivers/net/wireless/ath/ath11k/mac.c:4702:15: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:4702:15: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:8393:23: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:8393:23: error: too long token expansion
Workaround the warnings by refactoring the code to a new function, which also
reduces code duplication. And in the new function use max3() to make the code
more readable.
No functional changes, compile tested only.
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231214161740.1582340-1-kvalo@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tracing_net.h')
0 files changed, 0 insertions, 0 deletions