summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-10-29 08:33:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-13 15:37:39 -0500
commit923ffdc63503723936cf9c53bb08d1c9f8fc3883 (patch)
treeb7cc1dc953be40fd9cbee4ba197f0b3c143da86b /rust
parent4ebf02e01d742e55ad15239fe467bca6eb4cb5bb (diff)
downloadlinux-923ffdc63503723936cf9c53bb08d1c9f8fc3883.tar.gz
linux-923ffdc63503723936cf9c53bb08d1c9f8fc3883.tar.bz2
linux-923ffdc63503723936cf9c53bb08d1c9f8fc3883.zip
rust: condvar: fix broken intra-doc link
commit 09b1704f5b02c18dd02b21343530463fcfc92c54 upstream. The future move of pin-init to `syn` uncovers the following broken intra-doc link: error: unresolved link to `crate::pin_init` --> rust/kernel/sync/condvar.rs:39:40 | 39 | /// instances is with the [`pin_init`](crate::pin_init!) and [`new_condvar`] macros. | ^^^^^^^^^^^^^^^^ no item named `pin_init` in module `kernel` | = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Currently, when rendered, the link points to a literal `crate::pin_init!` URL. Thus fix it. Cc: stable@vger.kernel.org Fixes: 129e97be8e28 ("rust: pin-init: fix documentation links") Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251029073344.349341-1-ojeda@kernel.org 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/sync/condvar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/sync/condvar.rs b/rust/kernel/sync/condvar.rs
index c6ec64295c9f..aa5b9a7a726d 100644
--- a/rust/kernel/sync/condvar.rs
+++ b/rust/kernel/sync/condvar.rs
@@ -36,7 +36,7 @@ pub use new_condvar;
/// spuriously.
///
/// Instances of [`CondVar`] need a lock class and to be pinned. The recommended way to create such
-/// instances is with the [`pin_init`](crate::pin_init!) and [`new_condvar`] macros.
+/// instances is with the [`pin_init`](pin_init::pin_init!) and [`new_condvar`] macros.
///
/// # Examples
///