mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:00:58 +07:00
um: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
bc3e11be88
commit
91f2359396
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user