Skip to contentSkip to conversation

KVM: arm64: Fix order of arguments to ktime_get_snapshot_id()

PATCH In review Uwe Kleine-König 2 participants 2 messages Jun 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: arm64: Fix order of arguments to ktime_get_snapshot_id()

The first argument to ktime_get_snapshot_id() is the clock ID and the second output parameter. Fix the caller that reversed the order and thus fix a compiler error.

Fixes d09439210441 ("KVM: arm64: Use ktime_get_snapshot_id() to retrieve CLOCK_BOOTTIME")
---
 arch/arm64/kvm/hyp_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kvm/hyp_trace.c +1 -1
index 8574db7491bc..2411b4c32932 100644
@@ -118,7 +118,7 @@ static void hyp_trace_clock_enable(struct hyp_trace_clock *hyp_clock, bool enabl
 		hyp_clock->running = false;
 	}
 
-	ktime_get_snapshot_id(&snap, CLOCK_BOOTTIME);
+	ktime_get_snapshot_id(CLOCK_BOOTTIME, &snap);
 
 	hyp_clock->boot = ktime_to_ns(snap.systime);
 	hyp_clock->cycles = snap.cycles;

base-commit: d09439210441efbadd8b0aa32c1ddb1eab2f3abd

Signature · 1 line
2.47.3
#1 lore raw
Quoted 3 lines · Uwe Kleine-König

The first argument to ktime_get_snapshot_id() is the clock ID and the second output parameter. Fix the caller that reversed the order and thus fix a compiler error.

I've already squashed a fix earlier today