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

Commit ba969c44 authored by Zhao Hongjiang's avatar Zhao Hongjiang Committed by Helge Deller
Browse files

parisc: remove the second argument of kmap_atomic



kmap_atomic allows only one argument now, just move the second.

Signed-off-by: default avatarZhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent d7ab7302
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -606,7 +606,7 @@ void clear_user_highpage(struct page *page, unsigned long vaddr)
	/* Clear using TMPALIAS region.  The page doesn't need to
	/* Clear using TMPALIAS region.  The page doesn't need to
	   be flushed but the kernel mapping needs to be purged.  */
	   be flushed but the kernel mapping needs to be purged.  */


	vto = kmap_atomic(page, KM_USER0);
	vto = kmap_atomic(page);


	/* The PA-RISC 2.0 Architecture book states on page F-6:
	/* The PA-RISC 2.0 Architecture book states on page F-6:
	   "Before a write-capable translation is enabled, *all*
	   "Before a write-capable translation is enabled, *all*
@@ -641,8 +641,8 @@ void copy_user_highpage(struct page *to, struct page *from,
	   the `to' page must be flushed in copy_user_page_asm since
	   the `to' page must be flushed in copy_user_page_asm since
	   it can be used to bring in executable code.  */
	   it can be used to bring in executable code.  */


	vfrom = kmap_atomic(from, KM_USER0);
	vfrom = kmap_atomic(from);
	vto = kmap_atomic(to, KM_USER1);
	vto = kmap_atomic(to);


	purge_kernel_dcache_page_asm((unsigned long)vto);
	purge_kernel_dcache_page_asm((unsigned long)vto);
	purge_tlb_start(flags);
	purge_tlb_start(flags);