diff options
author | 2024-03-20 20:24:47 +0200 | |
---|---|---|
committer | 2024-03-25 12:50:41 +0200 | |
commit | fba52950e59d5eb7137339f2fcaf301a4e963cb4 (patch) | |
tree | dee724c12fe41b1be5274c3235d6056cd561cb75 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | wifi: ath6kl: fix sparse warnings (diff) | |
download | wireguard-linux-fba52950e59d5eb7137339f2fcaf301a4e963cb4.tar.xz wireguard-linux-fba52950e59d5eb7137339f2fcaf301a4e963cb4.zip |
wifi: wcn36xx: buff_to_be(): fix sparse warnings
Sparse warns:
drivers/net/wireless/ath/wcn36xx/txrx.c: note: in included file (through drivers/net/wireless/ath/wcn36xx/txrx.h):
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: warning: incorrect type in assignment (different base types)
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: expected unsigned int [usertype]
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: got restricted __be32 [usertype]
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: warning: incorrect type in assignment (different base types)
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: expected unsigned int [usertype]
drivers/net/wireless/ath/wcn36xx/wcn36xx.h:107:24: got restricted __be32 [usertype]
Use void pointers and two separate variables to workaround the warning. Also
now the callers don't need any casting. There's actually cpu_to_be32_array()
available but decided to do minimal changes instead.
Compile tested only.
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240320182449.3757215-3-kvalo@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions