wifi: rtlwifi: use unsigned long for bt_coexist_8723 timestamp
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 4 Oct 2023 09:24:15 +0000 (12:24 +0300)
committerKalle Valo <kvalo@kernel.org>
Mon, 9 Oct 2023 06:56:20 +0000 (09:56 +0300)
commit71ffa1bcd7a0b8331c32a81ce90290daaf17fce2
tree7a43393ca5862640c091f29463264cb5ede33018
parent14a5b11532e850e7a748cbb4c74ac5c5abf18211
wifi: rtlwifi: use unsigned long for bt_coexist_8723 timestamp

Since 'bt_inq_page_start_time' of 'struct bt_coexist_8723' is
in jiffies, prefer 'unsigned long' over 'u32' to avoid possible
truncation in 'rtl8723e_dm_bt_inq_page_monitor()' and adjust
related code. Found with clang's -Wshorten-64-to-32, compile
tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231004092418.73337-1-dmantipov@yandex.ru
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c
drivers/net/wireless/realtek/rtlwifi/wifi.h