Skip to content

Commit eb71fea

Browse files
BennoLossinojeda
authored andcommitted
rust: list: fix path of assert_pinned!
Commit dbd5058 ("rust: make pin-init its own crate") moved all items from pin-init into the pin-init crate, including the `assert_pinned!` macro. Thus fix the path of the sole user of the `assert_pinned!` macro. This occurrence was missed in the commit above, since it is in a macro rule that has no current users (although binder is a future user). Cc: [email protected] Fixes: dbd5058 ("rust: make pin-init its own crate") Signed-off-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Reworded slightly as discussed in the list. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent f4daa80 commit eb71fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/list/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ macro_rules! impl_list_arc_safe {
9696
} $($rest:tt)*) => {
9797
impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t {
9898
unsafe fn on_create_list_arc_from_unique(self: ::core::pin::Pin<&mut Self>) {
99-
$crate::assert_pinned!($t, $field, $fty, inline);
99+
::pin_init::assert_pinned!($t, $field, $fty, inline);
100100

101101
// SAFETY: This field is structurally pinned as per the above assertion.
102102
let field = unsafe {

0 commit comments

Comments
 (0)