diff options
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r-- | arch/mips/mm/init.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index c7aed133d11d..ecd562d2c348 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -142,7 +142,7 @@ void *kmap_coherent(struct page *page, unsigned long addr) | |||
142 | #endif | 142 | #endif |
143 | vaddr = __fix_to_virt(FIX_CMAP_END - idx); | 143 | vaddr = __fix_to_virt(FIX_CMAP_END - idx); |
144 | pte = mk_pte(page, PAGE_KERNEL); | 144 | pte = mk_pte(page, PAGE_KERNEL); |
145 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) | 145 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) |
146 | entrylo = pte.pte_high; | 146 | entrylo = pte.pte_high; |
147 | #else | 147 | #else |
148 | entrylo = pte_val(pte) >> 6; | 148 | entrylo = pte_val(pte) >> 6; |
@@ -221,7 +221,7 @@ void copy_user_highpage(struct page *to, struct page *from, | |||
221 | copy_page(vto, vfrom); | 221 | copy_page(vto, vfrom); |
222 | kunmap_atomic(vfrom, KM_USER0); | 222 | kunmap_atomic(vfrom, KM_USER0); |
223 | } | 223 | } |
224 | if (((vma->vm_flags & VM_EXEC) && !cpu_has_ic_fills_f_dc) || | 224 | if ((!cpu_has_ic_fills_f_dc) || |
225 | pages_do_alias((unsigned long)vto, vaddr & PAGE_MASK)) | 225 | pages_do_alias((unsigned long)vto, vaddr & PAGE_MASK)) |
226 | flush_data_cache_page((unsigned long)vto); | 226 | flush_data_cache_page((unsigned long)vto); |
227 | kunmap_atomic(vto, KM_USER1); | 227 | kunmap_atomic(vto, KM_USER1); |
@@ -229,8 +229,6 @@ void copy_user_highpage(struct page *to, struct page *from, | |||
229 | smp_wmb(); | 229 | smp_wmb(); |
230 | } | 230 | } |
231 | 231 | ||
232 | EXPORT_SYMBOL(copy_user_highpage); | ||
233 | |||
234 | void copy_to_user_page(struct vm_area_struct *vma, | 232 | void copy_to_user_page(struct vm_area_struct *vma, |
235 | struct page *page, unsigned long vaddr, void *dst, const void *src, | 233 | struct page *page, unsigned long vaddr, void *dst, const void *src, |
236 | unsigned long len) | 234 | unsigned long len) |
@@ -249,8 +247,6 @@ void copy_to_user_page(struct vm_area_struct *vma, | |||
249 | flush_cache_page(vma, vaddr, page_to_pfn(page)); | 247 | flush_cache_page(vma, vaddr, page_to_pfn(page)); |
250 | } | 248 | } |
251 | 249 | ||
252 | EXPORT_SYMBOL(copy_to_user_page); | ||
253 | |||
254 | void copy_from_user_page(struct vm_area_struct *vma, | 250 | void copy_from_user_page(struct vm_area_struct *vma, |
255 | struct page *page, unsigned long vaddr, void *dst, const void *src, | 251 | struct page *page, unsigned long vaddr, void *dst, const void *src, |
256 | unsigned long len) | 252 | unsigned long len) |
@@ -267,9 +263,6 @@ void copy_from_user_page(struct vm_area_struct *vma, | |||
267 | } | 263 | } |
268 | } | 264 | } |
269 | 265 | ||
270 | EXPORT_SYMBOL(copy_from_user_page); | ||
271 | |||
272 | |||
273 | #ifdef CONFIG_HIGHMEM | 266 | #ifdef CONFIG_HIGHMEM |
274 | unsigned long highstart_pfn, highend_pfn; | 267 | unsigned long highstart_pfn, highend_pfn; |
275 | 268 | ||