Commit eacb9d61919db56482dcea7ec943c9508175dc16

Authored by Ralf Baechle
1 parent e3cf10e93f

[MIPS] Remove unused argument from kunmap_coherent().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Showing 3 changed files with 6 additions and 6 deletions Side-by-side Diff

arch/mips/mm/cache.c
... ... @@ -96,7 +96,7 @@
96 96  
97 97 kaddr = kmap_coherent(page, vmaddr);
98 98 flush_data_cache_page((unsigned long)kaddr);
99   - kunmap_coherent(kaddr);
  99 + kunmap_coherent();
100 100 }
101 101 }
102 102  
... ... @@ -177,7 +177,7 @@
177 177  
178 178 #define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))
179 179  
180   -void kunmap_coherent(struct page *page)
  180 +void kunmap_coherent(void)
181 181 {
182 182 #ifndef CONFIG_MIPS_MT_SMTC
183 183 unsigned int wired;
... ... @@ -210,7 +210,7 @@
210 210 if (cpu_has_dc_aliases) {
211 211 vfrom = kmap_coherent(from, vaddr);
212 212 copy_page(vto, vfrom);
213   - kunmap_coherent(from);
  213 + kunmap_coherent();
214 214 } else {
215 215 vfrom = kmap_atomic(from, KM_USER0);
216 216 copy_page(vto, vfrom);
... ... @@ -233,7 +233,7 @@
233 233 if (cpu_has_dc_aliases) {
234 234 void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
235 235 memcpy(vto, src, len);
236   - kunmap_coherent(page);
  236 + kunmap_coherent();
237 237 } else
238 238 memcpy(dst, src, len);
239 239 if ((vma->vm_flags & VM_EXEC) && !cpu_has_ic_fills_f_dc)
... ... @@ -250,7 +250,7 @@
250 250 void *vfrom =
251 251 kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
252 252 memcpy(dst, vfrom, len);
253   - kunmap_coherent(page);
  253 + kunmap_coherent();
254 254 } else
255 255 memcpy(dst, src, len);
256 256 }
include/asm-mips/cacheflush.h
... ... @@ -96,7 +96,7 @@
96 96 unsigned long __init run_uncached(void *func);
97 97  
98 98 extern void *kmap_coherent(struct page *page, unsigned long addr);
99   -extern void kunmap_coherent(struct page *page);
  99 +extern void kunmap_coherent(void);
100 100  
101 101 #endif /* _ASM_CACHEFLUSH_H */