Repository navigation
Fix two incorrect Rustdoc source-tree paths #1246
Copy link
Copy link
Open
Labels
• docsRelated to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...Related to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...
Description
I found two incorrect source-tree paths in the current rust-next documentation:
rust/kernel/print.rslinks_printktoinclude/linux/_printk.h, which does not exist._printkis declared ininclude/linux/printk.h
Lines 93 to 102 in 7059bdf
| /// Prints a message via the kernel's [`_printk`]. | |
| /// | |
| /// Public but hidden since it should only be used from public macros. | |
| /// | |
| /// # Safety | |
| /// | |
| /// The format string must be one of the ones in [`format_strings`], and | |
| /// the module name must be null-terminated. | |
| /// | |
| /// [`_printk`]: srctree/include/linux/_printk.h |
rust/kernel/irq.rsdisplaysinclude/linux/device.h, while the link points toinclude/linux/interrupt.h. The displayed path should also beinclude/linux/interrupt.h
Lines 3 to 11 in 7059bdf
| //! IRQ abstractions. | |
| //! | |
| //! An IRQ is an interrupt request from a device. It is used to get the CPU's | |
| //! attention so it can service a hardware event in a timely manner. | |
| //! | |
| //! The current abstractions handle IRQ requests and handlers, i.e.: it allows | |
| //! drivers to register a handler for a given IRQ line. | |
| //! | |
| //! C header: [`include/linux/device.h`](srctree/include/linux/interrupt.h) |
@ojeda @dakr, would it be okay to fix both in one small patch, or should the IRQ change be separate?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
• docsRelated to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...Related to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...
Activity
ojeda commentedon Jul 17, 2026
Separate is usually best -- they will need different
Fixes:tags anyway.younes-io commentedon Jul 17, 2026
alright, I will take these then
ojeda commentedon Jul 17, 2026
Thanks!
younes-io commentedon Jul 17, 2026
For item 1 : patch https://lore.kernel.org/all/20260717-docs-printk-rustdoc-link-v1-1-892074948f75@younes.io/
For item 2 : patch https://lore.kernel.org/all/20260717-docs-irq-rustdoc-header-v1-1-36749192aa04@younes.io/
rust: irq: fix C header path in module docs
rust: print: fix broken `_printk` Rustdoc link
rust: irq: fix C header path in module docs