Commit eacb9d61919db56482dcea7ec943c9508175dc16
1 parent
e3cf10e93f
Exists in
master
and in
7 other branches
[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
arch/mips/mm/init.c
... | ... | @@ -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