aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
diff options
context:
space:
mode:
authorLorenzo Stoakes <[email protected]>2025-06-16 19:33:21 +0000
committerChristian Brauner <[email protected]>2025-06-17 11:35:23 +0000
commitc6900f227f892b36f9c820e60953fe01a4c1b6fa (patch)
treed8e6a57cbbfb98cd80e638f4f16dd2285d4c4b64 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
parentmm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare (diff)
downloadkernel-c6900f227f892b36f9c820e60953fe01a4c1b6fa.tar.gz
kernel-c6900f227f892b36f9c820e60953fe01a4c1b6fa.zip
mm/nommu: use file_has_valid_mmap_hooks() helper
Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare(). Therefore, update the check for file operations supporting mmap() by using the file_has_valid_mmap_hooks() helper function, which checks for either f_op->mmap or f_op->mmap_prepare rather than checking only for f_op->mmap directly. Signed-off-by: Lorenzo Stoakes <[email protected]> Link: https://lore.kernel.org/5f120b644b5890d1b50202d0f0d4c9f0d6b62873.1750099179.git.lorenzo.stoakes@oracle.com Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions