Skip to contentSkip to conversation

2.6.3 - unresolved isa_* symbols on alpha

PATCH? Jakub Bogusz 1 participant 1 message Feb 25, 2004

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/
PLD Team        http://www.pld-linux.org/
include/asm-alpha/io.h renamed from include/asm-alpha/io.h.orig +9 -0
@@ -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.
  */