summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/skas
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 23:14:17 +0800
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 21:48:15 +0800
commit91f2359396d87f24ea43d91ff77dec54847ad69a (patch)
tree75422aa4bd39927e4b448407fc3ccd83fb4f5e96 /arch/um/kernel/skas
parentbc3e11be88010e09692ed1d214407d56caa90075 (diff)
downloadop-kernel-dev-91f2359396d87f24ea43d91ff77dec54847ad69a.zip
op-kernel-dev-91f2359396d87f24ea43d91ff77dec54847ad69a.tar.gz
um: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'arch/um/kernel/skas')
-rw-r--r--arch/um/kernel/skas/uaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index 9fefd92..cd7df79 100644
--- a/arch/um/kernel/skas/uaccess.c
+++ b/arch/um/kernel/skas/uaccess.c
@@ -69,7 +69,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
return -1;
page = pte_page(*pte);
- addr = (unsigned long) kmap_atomic(page, KM_UML_USERCOPY) +
+ addr = (unsigned long) kmap_atomic(page) +
(addr & ~PAGE_MASK);
current->thread.fault_catcher = &buf;
@@ -82,7 +82,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
current->thread.fault_catcher = NULL;
- kunmap_atomic((void *)addr, KM_UML_USERCOPY);
+ kunmap_atomic((void *)addr);
return n;
}
OpenPOWER on IntegriCloud