summaryrefslogtreecommitdiffstats
path: root/kernel/debug
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 16:14:38 +0100
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 14:48:26 +0100
commitd762a50b5b1bb93e91cb3cd90b6ae133da98fe31 (patch)
tree8d60c2041cb5f76a86de83eb109735fa105c6567 /kernel/debug
parentudf: remove the second argument of k[un]map_atomic() (diff)
downloadlinux-d762a50b5b1bb93e91cb3cd90b6ae133da98fe31.tar.xz
linux-d762a50b5b1bb93e91cb3cd90b6ae133da98fe31.zip
kdb: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'kernel/debug')
-rw-r--r--kernel/debug/kdb/kdb_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/debug/kdb/kdb_support.c b/kernel/debug/kdb/kdb_support.c
index 7d6fb40d2188..d35cc2d3a4cc 100644
--- a/kernel/debug/kdb/kdb_support.c
+++ b/kernel/debug/kdb/kdb_support.c
@@ -384,9 +384,9 @@ static int kdb_getphys(void *res, unsigned long addr, size_t size)
if (!pfn_valid(pfn))
return 1;
page = pfn_to_page(pfn);
- vaddr = kmap_atomic(page, KM_KDB);
+ vaddr = kmap_atomic(page);
memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size);
- kunmap_atomic(vaddr, KM_KDB);
+ kunmap_atomic(vaddr);
return 0;
}