Skip to contentSkip to conversation

KVM: x86: Do not rely on implicit vmalloc.h inclusion

PATCH Superseded Jan Kiszka 1 participant 2 messages Dec 14, 2011

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: x86: Do not rely on implicit vmalloc.h inclusion

Works so far, but it is not guaranteed to stay like this.

---
 arch/x86/kvm/cpuid.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/kvm/cpuid.c +1 -0
index 3bb257e..25e087d 100644
@@ -14,6 +14,7 @@
 
 #include <linux/kvm_host.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 #include <asm/user.h>
 #include <asm/xsave.h>
 #include "cpuid.h"
Signature · 1 line
1.7.3.4
author
#1 lore raw

PATCH v2 1/1 KVM: x86: Do not rely on implicit inclusions

Works so far by change, but it is not guaranteed to stay like this.

---

Same for uaccess.h. Not sure if this is common policy, it just helped me backporting.

 arch/x86/kvm/cpuid.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kvm/cpuid.c +2 -0
index 3bb257e..10c767c 100644
@@ -14,6 +14,8 @@
 
 #include <linux/kvm_host.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
+#include <linux/uaccess.h>
 #include <asm/user.h>
 #include <asm/xsave.h>
 #include "cpuid.h"
Signature · 1 line
1.7.3.4