Re: linux-2.5.3-pre4/drivers/acenic.c: pci_unmap_addr_set not

David S. Miller (davem@redhat.com)
Thu, 24 Jan 2002 05:36:52 -0800 (PST)


From: "Adam J. Richter" <adam@yggdrasil.com>
Date: Thu, 24 Jan 2002 02:01:55 -0800

linux-2.5.3-pre4/drivers/acenic.c uses pci_unmap_addr_set,
which is defined for most architectures in include/asm-*/pci.h, but
not for i386. For i386 this results in undefined references. I
imagine that this is the result of a missed file (include/asm-i386/pci.h?)
from an Acenic update patch.

No, just a dumb typo:

--- include/asm-i386/pci.h.~1~ Tue Jan 15 10:59:36 2002
+++ include/asm-i386/pci.h Thu Jan 24 05:32:28 2002
@@ -118,7 +118,7 @@
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
#define pci_unmap_addr(PTR, ADDR_NAME) (0)
-#define pci_unmap_addr_SET(PTR, ADDR_NAME, VAL) do { } while (0)
+#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0)
#define pci_unmap_len(PTR, LEN_NAME) (0)
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)

-
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/