Re: 2.4.15-pre4 full build for i386, warnings

From: Kai Germaschewski (kai@tp1.ruhr-uni-bochum.de)
Date: Tue Nov 13 2001 - 04:34:06 EST


On Tue, 13 Nov 2001, Keith Owens wrote:

> depmod: *** Unresolved symbols in /var/tmp/lib/modules/2.4.15-pre4/kernel/drivers/char/isicom.o
> depmod: xquad_portio
> depmod: *** Unresolved symbols in /var/tmp/lib/modules/2.4.15-pre4/kernel/drivers/isdn/hysdn/hysdn.o
> depmod: xquad_portio
> [...]

That's supposedly because xquad_portio (ifdef CONFIG_MULTIQUAD) is not
exported, thus causing all modules using I/O instructions to fail.

I also see a static definition of xquad_portio in
arch/i386/boot/compressed/misc.c, for which I don't understand why it's
needed at all.

Trivial patch appended.

--Kai

diff -ur linux-2.4.15-pre4/arch/i386/kernel/i386_ksyms.c linux-2.4.15-pre4.work/arch/i386/kernel/i386_ksyms.c
--- linux-2.4.15-pre4/arch/i386/kernel/i386_ksyms.c Tue Nov 13 10:15:23 2001
+++ linux-2.4.15-pre4.work/arch/i386/kernel/i386_ksyms.c Tue Nov 13 10:28:39 2001
@@ -177,3 +177,7 @@
 
 extern int is_sony_vaio_laptop;
 EXPORT_SYMBOL(is_sony_vaio_laptop);
+
+#ifdef CONFIG_MULTIQUAD
+EXPORT_SYMBOL(xquad_portio);
+#endif
diff -ur linux-2.4.15-pre4/arch/i386/kernel/smpboot.c linux-2.4.15-pre4.work/arch/i386/kernel/smpboot.c
--- linux-2.4.15-pre4/arch/i386/kernel/smpboot.c Fri Oct 5 03:42:54 2001
+++ linux-2.4.15-pre4.work/arch/i386/kernel/smpboot.c Tue Nov 13 10:26:50 2001
@@ -969,7 +969,7 @@
 
 static int boot_cpu_logical_apicid;
 /* Where the IO area was mapped on multiquad, always 0 otherwise */
-void *xquad_portio = NULL;
+void *xquad_portio;
 
 void __init smp_boot_cpus(void)
 {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:33 EST