rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2 RESEND] rust: kernel: clean up empty `///` lines
@ 2024-09-29 11:15 Hridesh MG
  2024-09-29 11:15 ` [PATCH v3 2/2 RESEND] checkpatch: warn on empty rust doc comments Hridesh MG
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Hridesh MG @ 2024-09-29 11:15 UTC (permalink / raw)
  To: rust-for-linux, linux-kernel
  Cc: Hridesh MG, Andreas Hindborg, Boqun Feng, Miguel Ojeda,
	Alex Gaynor, Wedson Almeida Filho, Gary Guo, Björn Roy Baron,
	Benno Lossin, Alice Ryhl, Trevor Gross, Jens Axboe, Matt Gilbride

Remove unnecessary empty `///` lines in the rust docs.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1109
Signed-off-by: Hridesh MG <hridesh699@gmail.com>
---
Changelog:
v1->v2
- Fixed typo in commit title and description
- Removed backslashes in kernel::block::mq::Request
- Link to v1: https://lore.kernel.org/rust-for-linux/20240909161749.147076-1-hridesh699@gmail.com/

v2->v3
- Fixed From: tag in patch header
- Link to v2: https://lore.kernel.org/rust-for-linux/aa1b4059dfac001945745db02b6f6d9db2e5d1cb.1726072795.git.hridesh699@gmail.com/
---
 rust/kernel/block/mq/request.rs | 1 -
 rust/kernel/rbtree.rs           | 1 -
 2 files changed, 2 deletions(-)

diff --git a/rust/kernel/block/mq/request.rs b/rust/kernel/block/mq/request.rs
index a0e22827f3f4..313334b1bf18 100644
--- a/rust/kernel/block/mq/request.rs
+++ b/rust/kernel/block/mq/request.rs
@@ -30,7 +30,6 @@
 /// D) Request is owned by driver with more than one `ARef` in existence
 ///    (refcount > 2)
 ///
-///
 /// We need to track A and B to ensure we fail tag to request conversions for
 /// requests that are not owned by the driver.
 ///
diff --git a/rust/kernel/rbtree.rs b/rust/kernel/rbtree.rs
index 25eb36fd1cdc..006f6e03aba5 100644
--- a/rust/kernel/rbtree.rs
+++ b/rust/kernel/rbtree.rs
@@ -1031,7 +1031,6 @@ fn next(&mut self) -> Option<Self::Item> {
 
 /// A memory reservation for a red-black tree node.
 ///
-///
 /// It contains the memory needed to hold a node that can be inserted into a red-black tree. One
 /// can be obtained by directly allocating it ([`RBTreeNodeReservation::new`]).
 pub struct RBTreeNodeReservation<K, V> {
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-10-02  2:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-29 11:15 [PATCH v3 1/2 RESEND] rust: kernel: clean up empty `///` lines Hridesh MG
2024-09-29 11:15 ` [PATCH v3 2/2 RESEND] checkpatch: warn on empty rust doc comments Hridesh MG
2024-09-29 22:15   ` Trevor Gross
2024-09-30  2:41     ` Patrick Miller
2024-09-30 10:34       ` Hridesh MG
2024-09-30 10:44         ` Miguel Ojeda
2024-09-30 12:30           ` Hridesh MG
2024-10-02  2:17         ` Patrick Miller
2024-09-29 22:01 ` [PATCH v3 1/2 RESEND] rust: kernel: clean up empty `///` lines Trevor Gross
2024-09-30  7:44 ` Alice Ryhl
2024-09-30  8:49 ` Miguel Ojeda
2024-09-30 10:35   ` Hridesh MG
2024-09-30 11:47     ` 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).