Skip to content

Commit d762a50

Browse files
Cong Wangcongwang
authored andcommitted
kdb: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
1 parent 7c0fb22 commit d762a50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/debug/kdb/kdb_support.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ static int kdb_getphys(void *res, unsigned long addr, size_t size)
384384
if (!pfn_valid(pfn))
385385
return 1;
386386
page = pfn_to_page(pfn);
387-
vaddr = kmap_atomic(page, KM_KDB);
387+
vaddr = kmap_atomic(page);
388388
memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size);
389-
kunmap_atomic(vaddr, KM_KDB);
389+
kunmap_atomic(vaddr);
390390

391391
return 0;
392392
}

0 commit comments

Comments
 (0)