]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: Fix Jazz 64-bit build error.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 28 Nov 2011 16:11:28 +0000 (16:11 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 28 Nov 2011 16:12:31 +0000 (16:12 +0000)
Move add_wired_entry to its own header file from where it will be
always included.  Patch up other users of add_wired_entry to also include
the header as needed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/pgtable-32.h
arch/mips/include/asm/tlbmisc.h [new file with mode: 0644]
arch/mips/jazz/irq.c
arch/mips/jazz/setup.c
arch/mips/mm/tlb-r3k.c
arch/mips/mm/tlb-r4k.c
arch/mips/pci/pci-alchemy.c

index 8a153d2fa62af5aa1d3666f232e850e985e2b0ef..469390656c3fe269539ef725c8b513fd5888d352 100644 (file)
 
 #include <asm-generic/pgtable-nopmd.h>
 
-/*
- * - add_wired_entry() add a fixed TLB entry, and move wired register
- */
-extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
-                              unsigned long entryhi, unsigned long pagemask);
-
 /*
  * - add_temporary_entry() add a temporary TLB entry. We use TLB entries
  *     starting at the top and working down. This is for populating the
diff --git a/arch/mips/include/asm/tlbmisc.h b/arch/mips/include/asm/tlbmisc.h
new file mode 100644 (file)
index 0000000..3a45228
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef __ASM_TLBMISC_H
+#define __ASM_TLBMISC_H
+
+/*
+ * - add_wired_entry() add a fixed TLB entry, and move wired register
+ */
+extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
+       unsigned long entryhi, unsigned long pagemask);
+
+#endif /* __ASM_TLBMISC_H */
index ca9bd206914257e2479e9b750653f05790ad887d..99ab86ffa4c013c926647d60c7f805fdc87ceae9 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/io.h>
 #include <asm/jazz.h>
 #include <asm/pgtable.h>
+#include <asm/tlbmisc.h>
 
 static DEFINE_RAW_SPINLOCK(r4030_lock);
 
index 0d0f054a02f4bfc309ad3b7290b83a90dae26cfd..820e926dacbc5856167fdd34893d4b1c59ead161 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/jazzdma.h>
 #include <asm/reboot.h>
 #include <asm/pgtable.h>
+#include <asm/tlbmisc.h>
 
 extern asmlinkage void jazz_handle_int(void);
 
index 87bb85d8d537064d7e3b14b8cc5f342c589a484f..ed1fa460f84ec06b3a0c19e0fd93fd717286f7e0 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/pgtable.h>
 #include <asm/mmu_context.h>
 #include <asm/system.h>
+#include <asm/tlbmisc.h>
 #include <asm/isadep.h>
 #include <asm/io.h>
 #include <asm/bootinfo.h>
index 0d394e0e8837f640d84fa87003d763f0dc0bd10d..d163455552b0ee85c83d642cc21ce2cf6485a016 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/mmu_context.h>
 #include <asm/pgtable.h>
 #include <asm/system.h>
+#include <asm/tlbmisc.h>
 
 extern void build_tlb_refill_handler(void);
 
index b5eddf533c0be36f4e384dbb8bd2372fb85802b6..ec125bed721c5f616fb45493cf827d465ca2ced1 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/vmalloc.h>
 
 #include <asm/mach-au1x00/au1000.h>
+#include <asm/tlbmisc.h>
 
 #ifdef CONFIG_DEBUG_PCI
 #define DBG(x...) printk(KERN_DEBUG x)