From 51b4c0f9749d96d56887896383141e97916ac91b Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Wed, 29 Oct 2025 19:19:40 +0100 Subject: [PATCH] rust: pwm: Fix broken intra-doc link MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit `rustdoc` reports a broken intra-doc link: error: unresolved link to `Devres::register` --> rust/kernel/pwm.rs:722:11 | 722 | /// via [`Devres::register`]. This ties the lifetime of the PWM chip registration | ^^^^^^^^^^^^^^^^ no item named `Devres` in scope | = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Thus fix it. Fixes: d8046cd50879 ("rust: pwm: Add complete abstraction layer") Signed-off-by: Miguel Ojeda Link: https://patch.msgid.link/20251029181940.780629-1-ojeda@kernel.org Signed-off-by: Uwe Kleine-König --- rust/kernel/pwm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs index b19661b83b0f3..e6d1278d83169 100644 --- a/rust/kernel/pwm.rs +++ b/rust/kernel/pwm.rs @@ -660,7 +660,7 @@ unsafe impl Sync for Chip {} /// A resource guard that ensures `pwmchip_remove` is called on drop. /// /// This struct is intended to be managed by the `devres` framework by transferring its ownership -/// via [`Devres::register`]. This ties the lifetime of the PWM chip registration +/// via [`devres::register`]. This ties the lifetime of the PWM chip registration /// to the lifetime of the underlying device. pub struct Registration { chip: ARef>, -- 2.47.3