Skip to contentSkip to conversation

kvmtrace: fix ktime_t type usage in kvm.h

PATCH In review [email protected] 2 participants 2 messages Jul 15, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvmtrace: fix ktime_t type usage in kvm.h

From: Christian Ehrhardt <[email protected]>

This is a small but important change I unfortunately lost in one of my debugging patches which actually should only contain some printf's. This patch adds the ktime header since we now use ktime_t in this kvm.h. Even with all my tests I missed that, sorry for the inconvenience.

---

[diffstat]

 kvm.h |    1 +
 1 file changed, 1 insertion(+)

[diff]

include/linux/kvm.h +1 -0
@@ -10,6 +10,7 @@
 #include <asm/types.h>
 #include <linux/compiler.h>
 #include <linux/ioctl.h>
+#include <linux/ktime.h>
 #include <asm/kvm.h>
 
 #define KVM_API_VERSION 12
#1 lore raw
Quoted 8 lines · [email protected] wrote:

From: Christian Ehrhardt <[email protected]>

This is a small but important change I unfortunately lost in one of my debugging patches which actually should only contain some printf's. This patch adds the ktime header since we now use ktime_t in this kvm.h. Even with all my tests I missed that, sorry for the inconvenience.

ktime_t is kernel internal anyway. I converted kvmtrace to use a u64 nsec timestamp.

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.