]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: iommu.c file requires the full module.h present.
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 28 Jul 2011 01:25:05 +0000 (21:25 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:06:17 +0000 (04:06 -0400)
This file has things like module_param_named() and MODULE_PARM_DESC()
so it needs the full module.h header present.  Without it, you'll get:

  CC      arch/x86/kvm/../../../virt/kvm/iommu.o
virt/kvm/iommu.c:37: error: expected ‘)’ before ‘bool’
virt/kvm/iommu.c:39: error: expected ‘)’ before string constant
make[3]: *** [arch/x86/kvm/../../../virt/kvm/iommu.o] Error 1
make[2]: *** [arch/x86/kvm] Error 2

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
virt/kvm/iommu.c

index bea8719fcc8d646fe4b73b913b5128f2336e6678..5920a7e1b2a9cc00c3b2a9ab81c5f40c75b7a99c 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <linux/list.h>
 #include <linux/kvm_host.h>
+#include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/stat.h>
 #include <linux/dmar.h>