Skip to content

Commit b0c7d8c

Browse files
committed
rust: list: undo unintended replacement of method name
When we renamed `Opaque::raw_get` to `cast_into`, there was one replacement that was not supposed to be there. It does not cause an issue so far because it is inside a macro rule (the `ListLinksSelfPtr` one) that is unused so far. However, it will start to be used soon. Thus fix it now. Fixes: 64fb810 ("rust: types: rename Opaque::raw_get to cast_into") Reviewed-by: Tamir Duberstein <tamird@gmail.com> Link: https://lore.kernel.org/r/20250719183649.596051-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 23b128b commit b0c7d8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/list/impl_list_item_mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ macro_rules! impl_list_item {
252252
// the pointer stays in bounds of the allocation.
253253
let self_ptr = unsafe { (links_field as *const u8).add(spoff) }
254254
as *const ::core::cell::UnsafeCell<*const Self>;
255-
let cell_inner = ::core::cell::UnsafeCell::cast_into(self_ptr);
255+
let cell_inner = ::core::cell::UnsafeCell::raw_get(self_ptr);
256256
// SAFETY: This is not a data race, because the only function that writes to this
257257
// value is `prepare_to_insert`, but by the safety requirements the
258258
// `prepare_to_insert` method may not be called in parallel with `view_value` or

0 commit comments

Comments
 (0)