aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2025-07-31 15:48:09 +0000
committerDanilo Krummrich <[email protected]>2025-08-11 21:21:45 +0000
commit360077278ba62e81310080f075a1a3028e778ef9 (patch)
treece6673f1e247ae5457c698fe539cf82f9a4a517e /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentrust: drm: remove pin annotations from drm::Device (diff)
downloadkernel-360077278ba62e81310080f075a1a3028e778ef9.tar.gz
kernel-360077278ba62e81310080f075a1a3028e778ef9.zip
rust: drm: don't pass the address of drm::Device to drm_dev_put()
In drm_dev_put() call in AlwaysRefCounted::dec_ref() we rely on struct drm_device to be the first field in drm::Device, whereas everywhere else we correctly obtain the address of the actual struct drm_device. Analogous to the from_drm_device() helper, provide the into_drm_device() helper in order to address this. Fixes: 1e4b8896c0f3 ("rust: drm: add device abstraction") Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions