linux/rust/kernel/sync
Tamir Duberstein aa991a2a81 rust: types: avoid as casts
Replace `as` casts with `cast{,_mut}` calls which are a bit safer.

In one instance, remove an unnecessary `as` cast without replacement.

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-2-80dbadd00951@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-01-13 23:45:30 +01:00
..
arc rust: provide proper code documentation titles 2024-10-07 21:39:57 +02:00
lock rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
arc.rs rust: types: avoid as casts 2025-01-13 23:45:30 +01:00
condvar.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
lock.rs Rust changes for v6.13 2024-11-26 14:00:26 -08:00
locked_by.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
poll.rs rust: file: add abstraction for poll_table 2024-09-30 13:02:29 +02:00