From 47ce045cd83a6798fdd4c2f109850f617f90f9b2 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 1 Aug 2023 12:37:02 -0500 Subject: [PATCH] rtl8723ds: Fix warning in do_div Signed-off-by: Larry Finger --- os_dep/linux/ioctl_cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index f499f38..81c8c64 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -342,7 +342,8 @@ static u64 rtw_get_systime_us(void) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) ktime_t ts; ts = ktime_get_boottime(); - return do_div(ts, 1000); + do_div(ts, (uint32_t)1000); + return ts; #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)) struct timespec ts; get_monotonic_boottime(&ts);