2023-10-06 05:40:45

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: [PATCH] wifi: rtlwifi: use unsigned long for bt_coexist_8723 timestamp



> -----Original Message-----
> From: Dmitry Antipov <[email protected]>
> Sent: Wednesday, October 4, 2023 5:24 PM
> To: Ping-Ke Shih <[email protected]>
> Cc: Kalle Valo <[email protected]>; [email protected]; Dmitry Antipov <[email protected]>
> Subject: [PATCH] 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 <[email protected]>

Acked-by: Ping-Ke Shih <[email protected]>