Re: [PATCH 1/2] rust: io: fix Bar reference in Io struct's comment
From: Danilo Krummrich
Date: Sat Jan 03 2026 - 10:22:28 EST
On Sat Jan 3, 2026 at 3:31 PM CET, Marko Turk wrote:
> Bar was moved to a separate pci::io module, update the reference to it.
>
> Signed-off-by: Marko Turk <mt@xxxxxxxxxxxxxx>
> ---
> rust/kernel/io.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rust/kernel/io.rs b/rust/kernel/io.rs
> index 98e8b84e68d1..08853f32dae6 100644
> --- a/rust/kernel/io.rs
> +++ b/rust/kernel/io.rs
> @@ -87,7 +87,7 @@ pub fn maxsize(&self) -> usize {
> /// };
> /// use core::ops::Deref;
> ///
> -/// // See also [`pci::Bar`] for a real example.
> +/// // See also [`pci::io::Bar`] for a real example.
pci::io::Bar is re-exported as pci::Bar [1], so this should be fine. Given that
it is not a doc-comment the reference also doesn't do anything. We could remove
the square brackets accordingly.
[1] https://rust.docs.kernel.org/src/kernel/pci.rs.html#43