Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: ia64: fix ia64 build due to missing kallsyms_lookup() and double export

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>

authored by

Jes Sorensen and committed by
Avi Kivity
ffdfa071 84261923

+6
+6
arch/ia64/kvm/kvm_lib.c
··· 11 11 * 12 12 */ 13 13 #undef CONFIG_MODULES 14 + #include <linux/module.h> 15 + #undef CONFIG_KALLSYMS 16 + #undef EXPORT_SYMBOL 17 + #undef EXPORT_SYMBOL_GPL 18 + #define EXPORT_SYMBOL(sym) 19 + #define EXPORT_SYMBOL_GPL(sym) 14 20 #include "../../../lib/vsprintf.c" 15 21 #include "../../../lib/ctype.c"