Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5eb10ae authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Drop unused arguments for kunmap_coherent().



kunmap_coherent() doesn't do anything with its arguments, so just kill
them off.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 222db3e5
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -56,7 +56,7 @@ static void *kmap_coherent(struct page *page, unsigned long addr)
	return (void *)vaddr;
	return (void *)vaddr;
}
}


static inline void kunmap_coherent(struct page *page)
static inline void kunmap_coherent(void)
{
{
	dec_preempt_count();
	dec_preempt_count();
	preempt_check_resched();
	preempt_check_resched();
@@ -70,7 +70,7 @@ void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
	    !test_bit(PG_dcache_dirty, &page->flags)) {
	    !test_bit(PG_dcache_dirty, &page->flags)) {
		void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
		void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
		memcpy(vto, src, len);
		memcpy(vto, src, len);
		kunmap_coherent(vto);
		kunmap_coherent();
	} else {
	} else {
		memcpy(dst, src, len);
		memcpy(dst, src, len);
		if (boot_cpu_data.dcache.n_aliases)
		if (boot_cpu_data.dcache.n_aliases)
@@ -89,7 +89,7 @@ void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
	    !test_bit(PG_dcache_dirty, &page->flags)) {
	    !test_bit(PG_dcache_dirty, &page->flags)) {
		void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
		void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
		memcpy(dst, vfrom, len);
		memcpy(dst, vfrom, len);
		kunmap_coherent(vfrom);
		kunmap_coherent();
	} else {
	} else {
		memcpy(dst, src, len);
		memcpy(dst, src, len);
		if (boot_cpu_data.dcache.n_aliases)
		if (boot_cpu_data.dcache.n_aliases)
@@ -108,7 +108,7 @@ void copy_user_highpage(struct page *to, struct page *from,
	    !test_bit(PG_dcache_dirty, &from->flags)) {
	    !test_bit(PG_dcache_dirty, &from->flags)) {
		vfrom = kmap_coherent(from, vaddr);
		vfrom = kmap_coherent(from, vaddr);
		copy_page(vto, vfrom);
		copy_page(vto, vfrom);
		kunmap_coherent(vfrom);
		kunmap_coherent();
	} else {
	} else {
		vfrom = kmap_atomic(from, KM_USER0);
		vfrom = kmap_atomic(from, KM_USER0);
		copy_page(vto, vfrom);
		copy_page(vto, vfrom);