Skip to content

Commit a5ba9ad

Browse files
ojedagregkh
authored andcommitted
rust: faux: fix C header link
Starting with Rust 1.91.0 (expected 2025-10-30), `rustdoc` has improved some false negatives around intra-doc links [1], and it found a broken intra-doc link we currently have: error: unresolved link to `include/linux/device/faux.h` --> rust/kernel/faux.rs:7:17 | 7 | //! C header: [`include/linux/device/faux.h`] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `include/linux/device/faux.h` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Our `srctree/` C header links are not intra-doc links, thus they need the link destination. Thus fix it. Cc: stable <[email protected]> Link: rust-lang/rust#132748 [1] Fixes: 78418f3 ("rust/kernel: Add faux device bindings") Signed-off-by: Miguel Ojeda <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 970a7c6 commit a5ba9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/faux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//!
55
//! This module provides bindings for working with faux devices in kernel modules.
66
//!
7-
//! C header: [`include/linux/device/faux.h`]
7+
//! C header: [`include/linux/device/faux.h`](srctree/include/linux/device/faux.h)
88
99
use crate::{bindings, device, error::code::*, prelude::*};
1010
use core::ptr::{addr_of_mut, null, null_mut, NonNull};

0 commit comments

Comments
 (0)