]> err.no Git - linux-2.6/commitdiff
KVM: kvm.h: __user requires compiler.h
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 12 Mar 2008 17:10:45 +0000 (18:10 +0100)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:32 +0000 (12:00 +0300)
include/linux/kvm.h defines struct kvm_dirty_log to
[...]
union {
void __user *dirty_bitmap; /* one bit per page */
__u64 padding;
};

__user requires compiler.h to compile. Currently, this works on x86
only coincidentally due to other include files. This patch makes
kvm.h compile in all cases.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
include/linux/kvm.h

index c1b502a50a01c0af8b8cbef0b48bf9b58b77f419..3bd38284bfe914381422117bcb9a2fb8d1c57daf 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <asm/types.h>
+#include <linux/compiler.h>
 #include <linux/ioctl.h>
 #include <asm/kvm.h>