diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 23:14:17 +0800 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 21:48:15 +0800 |
commit | 8fd75e1216e0ba601a746177e6c102d5593b572f (patch) | |
tree | d9f8e867ccec9ecaa2b77616a01c1c3d0875d76e /arch/x86/lib | |
parent | 91f2359396d87f24ea43d91ff77dec54847ad69a (diff) | |
download | op-kernel-dev-8fd75e1216e0ba601a746177e6c102d5593b572f.zip op-kernel-dev-8fd75e1216e0ba601a746177e6c102d5593b572f.tar.gz |
x86: remove the second argument of k[un]map_atomic()
Acked-by: Avi Kivity <avi@redhat.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/usercopy_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/usercopy_32.c b/arch/x86/lib/usercopy_32.c index e218d5d..d9b094c 100644 --- a/arch/x86/lib/usercopy_32.c +++ b/arch/x86/lib/usercopy_32.c @@ -760,9 +760,9 @@ survive: break; } - maddr = kmap_atomic(pg, KM_USER0); + maddr = kmap_atomic(pg); memcpy(maddr + offset, from, len); - kunmap_atomic(maddr, KM_USER0); + kunmap_atomic(maddr); set_page_dirty_lock(pg); put_page(pg); up_read(¤t->mm->mmap_sem); |