Skip to content

Commit b5eb10a

Browse files
committed
sh: Drop unused arguments for kunmap_coherent().
kunmap_coherent() doesn't do anything with its arguments, so just kill them off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 222db3e commit b5eb10a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/sh/mm/pg-mmu.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static void *kmap_coherent(struct page *page, unsigned long addr)
5656
return (void *)vaddr;
5757
}
5858

59-
static inline void kunmap_coherent(struct page *page)
59+
static inline void kunmap_coherent(void)
6060
{
6161
dec_preempt_count();
6262
preempt_check_resched();
@@ -70,7 +70,7 @@ void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
7070
!test_bit(PG_dcache_dirty, &page->flags)) {
7171
void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
7272
memcpy(vto, src, len);
73-
kunmap_coherent(vto);
73+
kunmap_coherent();
7474
} else {
7575
memcpy(dst, src, len);
7676
if (boot_cpu_data.dcache.n_aliases)
@@ -89,7 +89,7 @@ void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
8989
!test_bit(PG_dcache_dirty, &page->flags)) {
9090
void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
9191
memcpy(dst, vfrom, len);
92-
kunmap_coherent(vfrom);
92+
kunmap_coherent();
9393
} else {
9494
memcpy(dst, src, len);
9595
if (boot_cpu_data.dcache.n_aliases)
@@ -108,7 +108,7 @@ void copy_user_highpage(struct page *to, struct page *from,
108108
!test_bit(PG_dcache_dirty, &from->flags)) {
109109
vfrom = kmap_coherent(from, vaddr);
110110
copy_page(vto, vfrom);
111-
kunmap_coherent(vfrom);
111+
kunmap_coherent();
112112
} else {
113113
vfrom = kmap_atomic(from, KM_USER0);
114114
copy_page(vto, vfrom);

0 commit comments

Comments
 (0)