]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
parisc: remove the second argument of kmap_atomic
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Sat, 27 Apr 2013 10:42:11 +0000 (10:42 +0000)
committerHelge Deller <deller@gmx.de>
Mon, 6 May 2013 20:19:00 +0000 (22:19 +0200)
kmap_atomic allows only one argument now, just move the second.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c

index 83ded26cad065af6cda1d1dc725dec381e48a669..65fb4cbc3a0ffd88f7f100870e8b0c952de573e7 100644 (file)
@@ -606,7 +606,7 @@ void clear_user_highpage(struct page *page, unsigned long vaddr)
        /* Clear using TMPALIAS region.  The page doesn't need to
           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:
           "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
           it can be used to bring in executable code.  */
 
-       vfrom = kmap_atomic(from, KM_USER0);
-       vto = kmap_atomic(to, KM_USER1);
+       vfrom = kmap_atomic(from);
+       vto = kmap_atomic(to);
 
        purge_kernel_dcache_page_asm((unsigned long)vto);
        purge_tlb_start(flags);