Patch for iomap on MIPS was Re: Build issue current MIPS - RaQ2

From: Jim Gifford
Date: Sun Mar 20 2005 - 01:29:22 EST


Jim Gifford wrote:

I have not been able to build kernels since 2.6.9 on my RaQ2 for some time. I have tried the linux-mips.org port and the current 2.6.11.5 release. I keep getting the same error.

Building modules, stage 2.
MODPOST
*** Warning: "pci_iounmap" [drivers/net/tulip/tulip.ko] undefined!
*** Warning: "pci_iomap" [drivers/net/tulip/tulip.ko] undefined!


I Finally figured it out, Here is a patch

diff -Naur linux-2.6.11/arch/mips/lib/Makefile linux-mips-2.6.11/arch/mips/lib/Makefile
--- linux-2.6.11/arch/mips/lib/Makefile 2005-03-01 23:37:48 -0800
+++ linux-mips-2.6.11/arch/mips/lib/Makefile 2005-03-19 21:49:03 -0800
@@ -2,7 +2,10 @@
# Makefile for MIPS-specific library files..
#

-lib-y += csum_partial_copy.o dec_and_lock.o iomap.o memcpy.o promlib.o \
+lib-y += csum_partial_copy.o dec_and_lock.o memcpy.o promlib.o \
strlen_user.o strncpy_user.o strnlen_user.o

+
+obj-y += iomap.o
+
EXTRA_AFLAGS := $(CFLAGS)

--
----
Jim Gifford
maillist@xxxxxxxxx

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