mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
crypto: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
8fd75e1216
commit
f0dfc0b0b7
7 changed files with 23 additions and 45 deletions
|
@ -79,13 +79,13 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
|
|||
/* wait for any prerequisite operations */
|
||||
async_tx_quiesce(&submit->depend_tx);
|
||||
|
||||
dest_buf = kmap_atomic(dest, KM_USER0) + dest_offset;
|
||||
src_buf = kmap_atomic(src, KM_USER1) + src_offset;
|
||||
dest_buf = kmap_atomic(dest) + dest_offset;
|
||||
src_buf = kmap_atomic(src) + src_offset;
|
||||
|
||||
memcpy(dest_buf, src_buf, len);
|
||||
|
||||
kunmap_atomic(src_buf, KM_USER1);
|
||||
kunmap_atomic(dest_buf, KM_USER0);
|
||||
kunmap_atomic(src_buf);
|
||||
kunmap_atomic(dest_buf);
|
||||
|
||||
async_tx_sync_epilog(submit);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue