KVM: ia64: fix ia64 build due to missing kallsyms_lookup() and double export
authorJes Sorensen <jes@sgi.com>
Wed, 17 Jun 2009 09:08:08 +0000 (11:08 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 28 Jun 2009 11:10:30 +0000 (14:10 +0300)
Fix problem with double export of certain symbols from vsprintf.c
which we do not wish to export from the kvm-intel.ko module.

In addition, we do not have access to kallsyms_lookup() from the
module, so make sure to #undef CONFIG_KALLSYMS

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm_lib.c

index a85cb61..f1268b8 100644 (file)
  *
  */
 #undef CONFIG_MODULES
+#include <linux/module.h>
+#undef CONFIG_KALLSYMS
+#undef EXPORT_SYMBOL
+#undef EXPORT_SYMBOL_GPL
+#define EXPORT_SYMBOL(sym)
+#define EXPORT_SYMBOL_GPL(sym)
 #include "../../../lib/vsprintf.c"
 #include "../../../lib/ctype.c"