summaryrefslogtreecommitdiff
path: root/rust/kernel/io/resource.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-11-03 20:06:50 +0100
committerDanilo Krummrich <dakr@kernel.org>2025-11-11 19:45:23 +1100
commitededb7bcdfdbcfbb7af93e3a543165a9553e1683 (patch)
tree5e2c9b9c3488a32b6c54b43ad793fb14d05bbe22 /rust/kernel/io/resource.rs
parentf7afdc473794ab71d38475755be72dc95e361c31 (diff)
rust: dma: use NonNull<T> instead of *mut T
In struct CoherentAllocation, use NonNull<T> instead of a raw *mut T for the CPU address; the CPU address of a valid CoherentAllocation won't ever be NULL. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251103190655.2326191-2-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/io/resource.rs')
0 files changed, 0 insertions, 0 deletions