diff options
Diffstat (limited to 'arch/mips/mm/init.c')
| -rw-r--r-- | arch/mips/mm/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index f08ae71c46ff..e9951c0e689f 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
| @@ -123,7 +123,7 @@ static void __init kmap_coherent_init(void) | |||
| 123 | static inline void kmap_coherent_init(void) {} | 123 | static inline void kmap_coherent_init(void) {} |
| 124 | #endif | 124 | #endif |
| 125 | 125 | ||
| 126 | static inline void *kmap_coherent(struct page *page, unsigned long addr) | 126 | void *kmap_coherent(struct page *page, unsigned long addr) |
| 127 | { | 127 | { |
| 128 | enum fixed_addresses idx; | 128 | enum fixed_addresses idx; |
| 129 | unsigned long vaddr, flags, entrylo; | 129 | unsigned long vaddr, flags, entrylo; |
| @@ -177,7 +177,7 @@ static inline void *kmap_coherent(struct page *page, unsigned long addr) | |||
| 177 | 177 | ||
| 178 | #define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1))) | 178 | #define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1))) |
| 179 | 179 | ||
| 180 | static inline void kunmap_coherent(struct page *page) | 180 | void kunmap_coherent(struct page *page) |
| 181 | { | 181 | { |
| 182 | #ifndef CONFIG_MIPS_MT_SMTC | 182 | #ifndef CONFIG_MIPS_MT_SMTC |
| 183 | unsigned int wired; | 183 | unsigned int wired; |
| @@ -377,7 +377,7 @@ void __init paging_init(void) | |||
| 377 | #ifdef CONFIG_FLATMEM | 377 | #ifdef CONFIG_FLATMEM |
| 378 | free_area_init(zones_size); | 378 | free_area_init(zones_size); |
| 379 | #else | 379 | #else |
| 380 | pfn = 0; | 380 | pfn = min_low_pfn; |
| 381 | for (i = 0; i < MAX_NR_ZONES; i++) | 381 | for (i = 0; i < MAX_NR_ZONES; i++) |
| 382 | for (j = 0; j < zones_size[i]; j++, pfn++) | 382 | for (j = 0; j < zones_size[i]; j++, pfn++) |
| 383 | if (!page_is_ram(pfn)) | 383 | if (!page_is_ram(pfn)) |
