x86, hypervisor: add missing <linux/module.h>
authorH. Peter Anvin <hpa@zytor.com>
Mon, 10 May 2010 05:46:54 +0000 (22:46 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 10 May 2010 05:46:54 +0000 (22:46 -0700)
EXPORT_SYMBOL() needs <linux/module.h> to be included; fixes modular
builds of the VMware balloon driver, and any future modular drivers
which depends on the hypervisor.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Greg KH <greg@kroah.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Alok Kataria <akataria@vmware.com>
Cc: Ky Srinivasan <ksrinivasan@novell.com>
Cc: Dmitry Torokhov <dtor@vmware.com>
LKML-Reference: <4BE49778.6060800@zytor.com>

arch/x86/kernel/cpu/hypervisor.c
arch/x86/kernel/cpu/mshyperv.c

index 4afb5a2..dd531cc 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <linux/module.h>
 #include <asm/processor.h>
 #include <asm/hypervisor.h>
 
index 0f13717..16f41bb 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/module.h>
 #include <asm/processor.h>
 #include <asm/hypervisor.h>
 #include <asm/hyperv.h>