From: Miguel Ojeda Date: Wed, 29 Oct 2025 18:19:40 +0000 (+0100) Subject: rust: pwm: Fix broken intra-doc link X-Git-Tag: v6.19-rc1~154^2~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b4c0f9749d96d56887896383141e97916ac91b;p=thirdparty%2Fkernel%2Flinux.git rust: pwm: Fix broken intra-doc link `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 --- 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>,