On 12/14/2023 8:17 AM, Kalle Valo wrote: > From: Kalle Valo <quic_kvalo@xxxxxxxxxxx> > > 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. > > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>