Skip to content

Commit 1ab4ce7

Browse files
Zhao Hongjiangtorvalds
authored andcommitted
parisc: remove the second argument of kmap_atomic()
kmap_atomic() requires only one argument now. Signed-off-by: Zhao Hongjiang <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: Helge Deller <[email protected]> Cc: Rolf Eike Beer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 550fcb8 commit 1ab4ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/parisc/kernel/cache.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void clear_user_highpage(struct page *page, unsigned long vaddr)
606606
/* Clear using TMPALIAS region. The page doesn't need to
607607
be flushed but the kernel mapping needs to be purged. */
608608

609-
vto = kmap_atomic(page, KM_USER0);
609+
vto = kmap_atomic(page);
610610

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

644-
vfrom = kmap_atomic(from, KM_USER0);
645-
vto = kmap_atomic(to, KM_USER1);
644+
vfrom = kmap_atomic(from);
645+
vto = kmap_atomic(to);
646646

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

0 commit comments

Comments
 (0)