diff options
| author | 2023-12-14 18:17:40 +0200 | |
|---|---|---|
| committer | 2023-12-15 17:58:51 +0200 | |
| commit | fd6ed1772b2c639370b7b41602d4c925dbd003d4 (patch) | |
| tree | 9fcdfd7f8ffc41b92b6da72d9a7597ad57622001 /kernel/bpf/arraymap.c | |
| parent | Revert "wifi: ath12k: use ATH12K_PCI_IRQ_DP_OFFSET for DP IRQ" (diff) | |
| download | wireguard-linux-fd6ed1772b2c639370b7b41602d4c925dbd003d4.tar.xz wireguard-linux-fd6ed1772b2c639370b7b41602d4c925dbd003d4.zip | |
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 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions
