diff options
| author | Boqun Feng <boqun.feng@gmail.com> | 2025-10-21 23:42:37 -0400 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-10-22 15:21:51 +0200 |
| commit | 37d0472c8ac441af8bc10fc4959ad9d62dd5fa4c (patch) | |
| tree | 926feb9ceedafb7e81f2ead64111bf6ba5a023a0 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | 795aab353d0650b2d04dc3aa2e22a51000cb2aaa (diff) | |
rust: debugfs: Implement Reader for Mutex<T> only when T is Unpin
Since we are going to make `Mutex<T>` structurally pin the data (i.e.
`T`), therefore `.lock()` function only returns a `Guard` that can
dereference a mutable reference to `T` if only `T` is `Unpin`, therefore
restrict the impl `Reader` block of `Mutex<T>` to that.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20251022034237.70431-1-boqun.feng@gmail.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
