From: Kyle McMartin Date: Fri, 29 Jun 2007 06:21:03 +0000 (-0400) Subject: [PARISC] Add dummy isa_(bus|virt)_to_(virt|bus) inlines X-Git-Tag: v2.6.23-rc4~9^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fabb8ff4ffa2b6bf89df8ed598551b6aaf632478;p=linux-2.6 [PARISC] Add dummy isa_(bus|virt)_to_(virt|bus) inlines Less painful than fixing up the Kconfig for a pile of drivers to only build on X86 && ARM && MIPS... Just make them BUG(), as defining them to be 1:1 with physical memory will likely HPMC the box anyways. Signed-off-by: Kyle McMartin --- diff --git a/include/asm-parisc/io.h b/include/asm-parisc/io.h index c0fed91da3..4cc9bcec05 100644 --- a/include/asm-parisc/io.h +++ b/include/asm-parisc/io.h @@ -15,6 +15,16 @@ extern unsigned long parisc_vmerge_max_size; #define virt_to_bus virt_to_phys #define bus_to_virt phys_to_virt +static inline unsigned long isa_bus_to_virt(unsigned long addr) { + BUG(); + return 0; +} + +static inline unsigned long isa_virt_to_bus(void *addr) { + BUG(); + return 0; +} + /* * Memory mapped I/O *