]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: kernel: reorder `ForeignOwnable` items
authorTamir Duberstein <tamird@gmail.com>
Wed, 20 Nov 2024 11:46:04 +0000 (06:46 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 13 Jan 2025 22:45:54 +0000 (23:45 +0100)
commitc6b97538c2c0f4de5902b5bb78eb89bd34219df9
tree01153bd2c1537ad4bd0e8f2c1d7fe34a0075acda
parent14686571a914833e38eef0f907202f58df4ffcd2
rust: kernel: reorder `ForeignOwnable` items

`{into,from}_foreign` before `borrow` is slightly more logical.

This removes an inconsistency with `kbox.rs` which already uses this
ordering.

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