|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 30 of 38] xen: implement io_apic_ops
Hi,
it seems that if CONFIG_XEN is set by CONFIG_XEN_DOM0 is not set,
then the call to xen_init_apic() in xen_start_kernel() causes the
build to fail.
One possible soluion to this is to provide a dummy
version of xen_init_apic() in the !CONFIG_XEN_DOM0 case.
Another possible solution would be to add #ifdef CONFIG_XEN_DOM0
inside xen_start_kernel()
#make gcc --version
gcc (Debian 4.3.2-1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# make
[snip]
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/x86/xen/built-in.o: In function `xen_start_kernel':
(.init.text+0x8ef): undefined reference to `xen_init_apic'
Index: linux-2.6/arch/x86/xen/xen-ops.h
===================================================================
--- linux-2.6.orig/arch/x86/xen/xen-ops.h 2008-11-20 17:23:14.000000000
+0900
+++ linux-2.6/arch/x86/xen/xen-ops.h 2008-11-20 17:24:28.000000000 +0900
@@ -64,7 +64,11 @@ static inline void xen_smp_init(void) {}
#endif
+#ifdef CONFIG_XEN_DOM0
void xen_init_apic(void);
+#else
+static inline void xen_init_apic(void) { ; }
+#endif
/* Declare an asm function, along with symbols needed to make it
inlineable */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|