aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorChaitanya Kulkarni <kch@nvidia.com>2023-03-30 11:49:25 -0700
committerJens Axboe <axboe@kernel.dk>2023-04-01 20:27:05 -0600
commitfbb5615f9f812acb660b8bd7b51e57ddbdbc7315 (patch)
treef15b6791d36138e57c83a064d952505436382295 /sound
parent06965037ce942500c1ce3aa29ca217093a9c5720 (diff)
null_blk: use non-deprecated lib functions
Use library helper memcpy_page() to copy source page into destination instead of having duplicate code in copy_to_nullb() & copy_from_nullb(). In copy_from_nullb() also replace the memset call with zero_user(). Use library helper memset_page() to set the buffer to 0xFF instead of having duplicate code. This also removes deprecated API kmap_atomic() from copy_to_nullb() copy_from_nullb() and nullb_fill_pattern(), from :include/linux/highmem.h: "kmap_atomic - Atomically map a page for temporary usage - Deprecated!" Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20230330184926.64209-2-kch@nvidia.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions