Files
linux/drivers
Kalle Valo fba52950e5 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
2024-03-25 12:50:41 +02:00
..
2024-02-06 20:07:35 +02:00
2023-12-15 17:07:05 +01:00
2024-02-02 12:33:50 -05:00
2023-12-11 09:10:42 +01:00
2024-01-05 15:55:41 +05:30
2024-02-08 19:03:35 -08:00
2024-02-13 15:48:22 +00:00
2023-12-15 17:27:04 +01:00
2024-02-06 20:07:12 +02:00
2024-02-06 14:42:11 +00:00
2024-01-04 17:03:47 +01:00
2024-01-12 12:38:37 +01:00