]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: kernel: change `ForeignOwnable` pointer to mut
authorTamir Duberstein <tamird@gmail.com>
Wed, 20 Nov 2024 11:46:03 +0000 (06:46 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 13 Jan 2025 22:45:31 +0000 (23:45 +0100)
commit14686571a914833e38eef0f907202f58df4ffcd2
treecc169fb79d689f8f96f2ad705641ef7c6ca4fdce
parent5d385a356f628bd4a1d9f403588272d9626e3245
rust: kernel: change `ForeignOwnable` pointer to mut

It is slightly more convenient to operate on mut pointers, and this also
properly conveys the desired ownership semantics of the trait.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241120-borrow-mut-v6-4-80dbadd00951@gmail.com
[ Reworded title slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/alloc/kbox.rs
rust/kernel/miscdevice.rs
rust/kernel/sync/arc.rs
rust/kernel/types.rs