aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorBen Horgan <[email protected]>2025-07-09 09:38:08 +0000
committerYury Norov <[email protected]>2025-07-31 15:28:03 +0000
commite2b02d382ae0cb90697e8529dfd3f93bf8c6905c (patch)
treef5685a9bd7dfab3e03c1358d20091bbdc1ae9951 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parenttest_bits: add tests for __GENMASK() and __GENMASK_ULL() (diff)
downloadkernel-e2b02d382ae0cb90697e8529dfd3f93bf8c6905c.tar.gz
kernel-e2b02d382ae0cb90697e8529dfd3f93bf8c6905c.zip
bitfield: Ensure the return values of helper functions are checked
As type##_replace_bits() has no side effects it is only useful if its return value is checked. Add __must_check to enforce this usage. To have the bits replaced in-place typep##_replace_bits() can be used instead. Although, type_##_get_bits() and type_##_encode_bits() are harder to misuse they are still only useful if the return value is checked. For consistency, also add __must_check to these. Signed-off-by: Ben Horgan <[email protected]> Signed-off-by: Yury Norov (NVIDIA) <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions