rust: doc: Clean up formatting in io.rs
Subsystems (2)
PATCH v2 1/1 rust: doc: Clean up formatting in io.rs
From: Sai Vishnu M <[email protected]>
--- rust/kernel/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/io.rs +1 -1
@@ -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.
Signature · 8 lines
v1: Edit the doc comment for `IoMem` to remove the usage of `@` for parameters and replace them with backticks. Link to v1: https://lkml.org/lkml/2025/5/30/550 v2: Removed reference to internal variables altogether. Thanks! 2.49.0
Quoted 2 lines · On Sun, Jun 1, 2025 at 6:52 PM <[email protected]> wrote:
From: Sai Vishnu M <[email protected]>
This "From" line is fine, but it is best to avoid it by configuring your setup in a way that the From email header matches your Git author. In other words, the email author is now just "<[email protected]>", without your name.
Quoted 1 line
The commit message is empty -- the kernel requires providing an explanation which typically includes the "what" and the "why". In trivial patches like this one it may seem pointless, but still, it is good to explain the change :)
Quoted 1 line
-/// IO-mapped memory, starting at the base address
addrand spanningmaxlenbytes.
This appears to be the line from v1 -- the patch should apply against the tree, not against the previous version of the patch. In other words, patch versions are like rebased, rather than stacked.
Quoted 1 line
+/// IO-mapped memory region.
The change itself looks good to me, thanks!
Quoted 3 lines
v1: Edit the doc comment for
IoMemto remove the usage of@for parameters and replace them with backticks. Link to v1: https://lkml.org/lkml/2025/5/30/550
Please prefer lore.kernel.org for links.
Quoted 5 lines
v2: Removed reference to internal variables altogether.
Thanks!
2.49.0
The changelog (and any other comments) normally goes after the --- line (before the diffstat), rather than at the bottom.
By the way, since we will need a v3 to fix these bits, could you please try the --base flag? It is always nice to know against which commit a patch is generated, even if in cases like this is obvious, and helps other tooling (e.g. testing bots).
Thanks for the patch!
Cheers,
Miguel