diff options
| author | Dmitry Antipov <[email protected]> | 2023-10-20 04:09:36 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-10-25 09:08:52 +0000 |
| commit | 7d7b6f2953b342bf6eab81886a03680109f3cb1c (patch) | |
| tree | 6708ede1391fca4f4924bb1723626ca4e809da8b /net/ipv4/tcp_ipv4.c | |
| parent | wifi: rt2x00: rework MT7620 PA/LNA RF calibration (diff) | |
| download | kernel-7d7b6f2953b342bf6eab81886a03680109f3cb1c.tar.gz kernel-7d7b6f2953b342bf6eab81886a03680109f3cb1c.zip | |
wifi: rtw89: cleanup firmware elements parsing
When compiling with clang-18, I've noticed the following:
drivers/net/wireless/realtek/rtw89/fw.c:389:28: warning: cast to smaller
integer type 'enum rtw89_fw_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
389 | enum rtw89_fw_type type = (enum rtw89_fw_type)data;
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/realtek/rtw89/fw.c:569:13: warning: cast to smaller
integer type 'enum rtw89_rf_path' from 'const void *' [-Wvoid-pointer-to-enum-cast]
569 | rf_path = (enum rtw89_rf_path)data;
| ^~~~~~~~~~~~~~~~~~~~~~~~
So avoid brutal everything-to-const-void-and-back casts, introduce
'union rtw89_fw_element_arg' to pass parameters to element handler
callbacks, and adjust all of the related bits accordingly. Compile
tested only.
Signed-off-by: Dmitry Antipov <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions
