From: Christian Borntraeger <borntraeger@de.ibm.com> Date: Wed, 12 Mar 2008 17:10:45 +0000 (+0100) Subject: KVM: kvm.h: __user requires compiler.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97646202bc3f190dfcb48a3d506ea2445717d392;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git KVM: kvm.h: __user requires compiler.h 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> --- diff --git a/include/linux/kvm.h b/include/linux/kvm.h index c1b502a50a01..3bd38284bfe9 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -8,6 +8,7 @@ */ #include <asm/types.h> +#include <linux/compiler.h> #include <linux/ioctl.h> #include <asm/kvm.h>