x86, hypervisor: add missing <linux/module.h>
authorH. Peter Anvin <[email protected]>
Mon, 10 May 2010 05:46:54 +0000 (22:46 -0700)
committerH. Peter Anvin <[email protected]>
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 <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Alok Kataria <[email protected]>
Cc: Ky Srinivasan <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
LKML-Reference: <4BE49778.6060800@zytor.com>

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

index 4afb5a2130ed2c983ce2e31c6149432d52a3bcde..dd531cc56a8f2c2f6da4acd545f413d869ee5869 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <linux/module.h>
 #include <asm/processor.h>
 #include <asm/hypervisor.h>
 
index 0f1371724c86b88e9943d07648702f2220f3f98d..16f41bbe46b6b3ae6f4d6754b735d967f098394e 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>