* [PATCH v4] rust: doc: Clean up formatting in io.rs
@ 2025-06-02 16:49 Sai Vishnu M
2025-06-02 17:11 ` Miguel Ojeda
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sai Vishnu M @ 2025-06-02 16:49 UTC (permalink / raw)
To: rust-for-linux
Cc: linux-kernel, ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh,
lossin, a.hindborg, aliceryhl, tmgross, dakr, gregkh,
daniel.almeida, me, Sai Vishnu M
From: Sai Vishnu M <saivishnu725@gmail.com>
Removed reference to internal variables in the comment of `IoMem`
This avoids using private variable names in public documentation.
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Closes: https://github.com/Rust-for-Linux/linux/issues/1167
Signed-off-by: Sai Vishnu M <saivishnu725@gmail.com>
---
v1: Used backticks instead of `@` for parameters
link: https://lore.kernel.org/rust-for-linux/20250530123129.31505-2-saivishnu725@gmail.com/
v2: removed reference to the variable entirely.
link: https://lore.kernel.org/rust-for-linux/20250601164939.5306-2-saivishnu725@gmail.com/
v3: Moved chanelog to commit message. Used the proper parent commit.
link: https://lore.kernel.org/rust-for-linux/20250602083119.17752-2-saivishnu725@gmail.com/
v4: Fixed the patch format with the same commit changes
---
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 72d80a6f131e..41404c1e17b3 100644
--- a/rust/kernel/io.rs
+++ b/rust/kernel/io.rs
@@ -43,7 +43,7 @@ pub fn maxsize(&self) -> usize {
}
}
-/// IO-mapped memory, starting at the base address @addr and spanning @maxlen bytes.
+/// IO-mapped memory region.
///
/// The creator (usually a subsystem / bus such as PCI) is responsible for creating the
/// mapping, performing an additional region request etc.
base-commit: 7a17bbc1d952057898cb0739e60665908fbb8c72
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] rust: doc: Clean up formatting in io.rs
2025-06-02 16:49 [PATCH v4] rust: doc: Clean up formatting in io.rs Sai Vishnu M
@ 2025-06-02 17:11 ` Miguel Ojeda
2025-06-08 7:59 ` Benno Lossin
2025-06-23 23:14 ` Miguel Ojeda
2 siblings, 0 replies; 4+ messages in thread
From: Miguel Ojeda @ 2025-06-02 17:11 UTC (permalink / raw)
To: Sai Vishnu M
Cc: rust-for-linux, linux-kernel, ojeda, alex.gaynor, boqun.feng,
gary, bjorn3_gh, lossin, a.hindborg, aliceryhl, tmgross, dakr,
gregkh, daniel.almeida, me
On Mon, Jun 2, 2025 at 6:51 PM Sai Vishnu M <saivishnu725@gmail.com> wrote:
>
> From: Sai Vishnu M <saivishnu725@gmail.com>
I think this line should not have been generated by Git, but it should not hurt.
Apart from that, looks good, thanks!
I can pick it up, but if someone else does:
Acked-by: Miguel Ojeda <ojeda@kerrnel.org>
Cheers,
Miguel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] rust: doc: Clean up formatting in io.rs
2025-06-02 16:49 [PATCH v4] rust: doc: Clean up formatting in io.rs Sai Vishnu M
2025-06-02 17:11 ` Miguel Ojeda
@ 2025-06-08 7:59 ` Benno Lossin
2025-06-23 23:14 ` Miguel Ojeda
2 siblings, 0 replies; 4+ messages in thread
From: Benno Lossin @ 2025-06-08 7:59 UTC (permalink / raw)
To: Sai Vishnu M, rust-for-linux
Cc: linux-kernel, ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh,
a.hindborg, aliceryhl, tmgross, dakr, gregkh, daniel.almeida, me
On Mon Jun 2, 2025 at 6:49 PM CEST, Sai Vishnu M wrote:
> From: Sai Vishnu M <saivishnu725@gmail.com>
>
> Removed reference to internal variables in the comment of `IoMem`
> This avoids using private variable names in public documentation.
>
> Reported-by: Miguel Ojeda <ojeda@kernel.org>
> Closes: https://github.com/Rust-for-Linux/linux/issues/1167
> Signed-off-by: Sai Vishnu M <saivishnu725@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
---
Cheers,
Benno
> ---
> v1: Used backticks instead of `@` for parameters
> link: https://lore.kernel.org/rust-for-linux/20250530123129.31505-2-saivishnu725@gmail.com/
> v2: removed reference to the variable entirely.
> link: https://lore.kernel.org/rust-for-linux/20250601164939.5306-2-saivishnu725@gmail.com/
> v3: Moved chanelog to commit message. Used the proper parent commit.
> link: https://lore.kernel.org/rust-for-linux/20250602083119.17752-2-saivishnu725@gmail.com/
> v4: Fixed the patch format with the same commit changes
> ---
> rust/kernel/io.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] rust: doc: Clean up formatting in io.rs
2025-06-02 16:49 [PATCH v4] rust: doc: Clean up formatting in io.rs Sai Vishnu M
2025-06-02 17:11 ` Miguel Ojeda
2025-06-08 7:59 ` Benno Lossin
@ 2025-06-23 23:14 ` Miguel Ojeda
2 siblings, 0 replies; 4+ messages in thread
From: Miguel Ojeda @ 2025-06-23 23:14 UTC (permalink / raw)
To: Sai Vishnu M
Cc: rust-for-linux, linux-kernel, ojeda, alex.gaynor, boqun.feng,
gary, bjorn3_gh, lossin, a.hindborg, aliceryhl, tmgross, dakr,
gregkh, daniel.almeida, me
On Mon, Jun 2, 2025 at 6:51 PM Sai Vishnu M <saivishnu725@gmail.com> wrote:
>
> From: Sai Vishnu M <saivishnu725@gmail.com>
>
> Removed reference to internal variables in the comment of `IoMem`
> This avoids using private variable names in public documentation.
>
> Reported-by: Miguel Ojeda <ojeda@kernel.org>
> Closes: https://github.com/Rust-for-Linux/linux/issues/1167
> Signed-off-by: Sai Vishnu M <saivishnu725@gmail.com>
Applied to `rust-next` -- thanks!
[ Reworded title and adjusted tags. - Miguel ]
Danilo: you originally added this, so if you are against this one,
please let me know.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-23 23:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02 16:49 [PATCH v4] rust: doc: Clean up formatting in io.rs Sai Vishnu M
2025-06-02 17:11 ` Miguel Ojeda
2025-06-08 7:59 ` Benno Lossin
2025-06-23 23:14 ` Miguel Ojeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).