소스 검색

[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 <kyle@parisc-linux.org>
Kyle McMartin 18 년 전
부모
커밋
fabb8ff4ff
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      include/asm-parisc/io.h

+ 10 - 0
include/asm-parisc/io.h

@@ -15,6 +15,16 @@ extern unsigned long parisc_vmerge_max_size;
 #define virt_to_bus virt_to_phys
 #define virt_to_bus virt_to_phys
 #define bus_to_virt phys_to_virt
 #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
  * Memory mapped I/O
  *
  *