summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorBenno Lossin <lossin@kernel.org>2025-05-25 19:34:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 15:41:02 +0200
commit98af4b6b983cd227a95c7677ca268c3b41c82b47 (patch)
treef8057df51dec8a0de8088bc0e0ee786e7a7179b8 /rust
parent6545df4edb2cea7607887898da5130748f1b2d94 (diff)
downloadlinux-98af4b6b983cd227a95c7677ca268c3b41c82b47.tar.gz
linux-98af4b6b983cd227a95c7677ca268c3b41c82b47.tar.bz2
linux-98af4b6b983cd227a95c7677ca268c3b41c82b47.zip
rust: list: fix path of `assert_pinned!`
commit eb71feaacaaca227ae8f91c8578cf831553c5ab5 upstream. Commit dbd5058ba60c ("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: stable@kernel.org Fixes: dbd5058ba60c ("rust: make pin-init its own crate") Signed-off-by: Benno Lossin <lossin@kernel.org> Link: https://lore.kernel.org/r/20250525173450.853413-1-lossin@kernel.org [ Reworded slightly as discussed in the list. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/kernel/list/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/list/arc.rs b/rust/kernel/list/arc.rs
index 13c50df37b89..a88a2dc65aa7 100644
--- a/rust/kernel/list/arc.rs
+++ b/rust/kernel/list/arc.rs
@@ -96,7 +96,7 @@ macro_rules! impl_list_arc_safe {
} $($rest:tt)*) => {
impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t {
unsafe fn on_create_list_arc_from_unique(self: ::core::pin::Pin<&mut Self>) {
- $crate::assert_pinned!($t, $field, $fty, inline);
+ ::pin_init::assert_pinned!($t, $field, $fty, inline);
// SAFETY: This field is structurally pinned as per the above assertion.
let field = unsafe {