From dffe18cf81a3c4c2260791d2246220a4d4f0cc8f Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 20 Dec 2019 19:47:49 +0000 Subject: [PATCH] x86: Hyper-V clock source's offset should be signed Also drop the useless inline keyword. Fixes: 685d16bd5 (x86: implement Hyper-V clock source) Signed-off-by: Wei Liu Acked-by: Andrew Cooper --- xen/arch/x86/time.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index a3c9b927e8..fca25e1c22 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -696,9 +696,10 @@ static int64_t __init init_hyperv_timer(struct platform_timesource *pts) return freq; } -static inline uint64_t read_hyperv_timer(void) +static uint64_t read_hyperv_timer(void) { - uint64_t scale, offset, ret, tsc; + uint64_t scale, ret, tsc; + int64_t offset; uint32_t seq; const struct ms_hyperv_tsc_page *tsc_page = hyperv_tsc; -- 2.39.5