mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH?] 2.6.3 - unresolved isa_* symbols on alpha
@ 2004-02-25 14:29 Jakub Bogusz
  0 siblings, 0 replies; only message in thread
From: Jakub Bogusz @ 2004-02-25 14:29 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

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/

[-- Attachment #2: linux-alpha-isa.patch --]
[-- Type: text/plain, Size: 529 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-25 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-25 14:29 [PATCH?] 2.6.3 - unresolved isa_* symbols on alpha Jakub Bogusz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®