LinuxKPI: cast jiffies_to_msecs() result

jiffies_to_msecs() is expected to return an uint_t.  In order to avoid
changing printf format strings, properly cast the result to the
expected type.

Sponsored by:	The FreeBSD Foundation
MFC after:	10 days
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D40486
This commit is contained in:
Bjoern A. Zeeb 2023-06-10 22:57:27 +00:00
parent b2dcde7e9e
commit 08bc2cc4c4

View file

@ -40,7 +40,7 @@
#define jiffies ticks
#define jiffies_64 ticks
#define jiffies_to_msecs(x) (((int64_t)(int)(x)) * 1000 / hz)
#define jiffies_to_msecs(x) ((unsigned int)(((int64_t)(int)(x)) * 1000 / hz))
#define MAX_JIFFY_OFFSET ((INT_MAX >> 1) - 1)