Skip to content

Commit

Permalink
MIPS: Fix Jazz 64-bit build error.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Dec 7, 2011
1 parent ab75dc0 commit 3d18c98
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/mips/include/asm/pgtable-32.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

#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
Expand Down
10 changes: 10 additions & 0 deletions arch/mips/include/asm/tlbmisc.h
Original file line number Diff line number Diff line change
@@ -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 */
1 change: 1 addition & 0 deletions arch/mips/jazz/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions arch/mips/jazz/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions arch/mips/mm/tlb-r3k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mm/tlb-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions arch/mips/pci/pci-alchemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d18c98

Please sign in to comment.