Messages in this thread Patch in this message | | | Date | Wed, 25 Feb 2004 15:29:14 +0100 | From | Jakub Bogusz <> | Subject | [PATCH?] 2.6.3 - unresolved isa_* symbols on alpha |
| |
On alpha CONFIG_ISA is set (to y), but isa_virt_to_bus, isa_page_to_bus, isa_bus_to_virt are not defined, which results in the following unresolved symbols:
*** Warning: "isa_virt_to_bus" [drivers/scsi/wd7000.ko] undefined! *** Warning: "isa_page_to_bus" [drivers/scsi/wd7000.ko] undefined! *** Warning: "isa_bus_to_virt" [drivers/scsi/wd7000.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/char/tpqic02.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/char/synclink.ko] undefined! *** Warning: "isa_bus_to_virt" [drivers/net/ni65.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/net/ni65.ko] undefined! *** Warning: "isa_bus_to_virt" [drivers/net/ni52.ko] undefined! *** Warning: "isa_virt_to_bus" [net/irda/irda.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/net/cs89x0.ko] undefined! *** Warning: "isa_bus_to_virt" [drivers/net/3c515.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/net/3c515.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/net/3c505.ko] undefined!
Because virt_to_bus, page_to_bus, bus_to_virt are defined in asm-alpha/io.h, I copied three defines from asm-i386/io.h - I'm not sure if it's correct (and should it be in __KERNEL__ or outside __KERNEL__ part), but at least it avoids these unresolved symbols.
-- Jakub Bogusz http://cyber.cs.net.pl/~qboosh/ PLD Team http://www.pld-linux.org/ --- linux-2.6.3/include/asm-alpha/io.h.orig 2004-02-18 04:59:27.000000000 +0100 +++ linux-2.6.3/include/asm-alpha/io.h 2004-02-25 13:42:10.000000000 +0100 @@ -131,6 +131,15 @@ #endif /* !__KERNEL__ */ /* + * taken from asm-i386 + * ("ISA I/O bus memory addresses are 1:1 with the physical address") + * is it correct? + */ +#define isa_virt_to_bus virt_to_phys +#define isa_page_to_bus page_to_phys +#define isa_bus_to_virt phys_to_virt + +/* * There are different chipsets to interface the Alpha CPUs to the world. */ | |