All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/4]  Clean up rustdocs and add new checkpatch checks
@ 2024-10-15 15:51 Hridesh MG
  2024-10-15 15:51 ` [PATCH v6 1/4] rust: make section names plural Hridesh MG
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Hridesh MG @ 2024-10-15 15:51 UTC (permalink / raw)
  To: rust-for-linux, linux-kernel
  Cc: Andreas Hindborg, Boqun Feng, Miguel Ojeda, Alex Gaynor, Gary Guo,
	Björn Roy Baron, Benno Lossin, Alice Ryhl, Trevor Gross,
	Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn,
	Hridesh MG, Jens Axboe, Wedson Almeida Filho, Valentin Obst,
	Patrick Miller, Alex Mantel, Matt Gilbride, Aswin Unnikrishnan,
	Martin Rodriguez Reboredo, FUJITA Tomonori

Clean up the rustdocs as suggested by two issues[1][2]. The first issue
is to convert all rustdoc headers to plural in order to maintain
consistency and avoid situations where further additions to the doc
could render the grammar incorrect. The second issue aims to remove
consecutive empty rustdoc lines.

Also add two new checks (patches 2 and 4) to checkpatch to detect any
future occurrences of the above two issues and optionally fix them using
--fix.

This patchset is a merger of two different patchsets [3] and [4] with a
few improvements made on top of them which are listed on their
individual changelogs.

[1]: https://github.com/Rust-for-Linux/linux/issues/1110
[2]: https://github.com/Rust-for-Linux/linux/issues/1109

[3]: https://lore.kernel.org/rust-for-linux/20241002022749.390836-1-paddymills@proton.me/
[4]: https://lore.kernel.org/rust-for-linux/dbb63b5698aa507bbe3dec54b4458a3f151899d3.1727606659.git.hridesh699@gmail.com/

Hridesh MG (2):
  rust: kernel: clean up empty `///` lines
  checkpatch: warn on empty rust doc comments

Patrick Miller (2):
  rust: make section names plural
  checkpatch: warn on known non-plural rust doc headers

 rust/kernel/block/mq/request.rs |  1 -
 rust/kernel/init.rs             |  2 +-
 rust/kernel/list/arc.rs         |  2 +-
 rust/kernel/rbtree.rs           |  1 -
 rust/kernel/sync/arc.rs         |  2 +-
 rust/macros/lib.rs              |  2 +-
 scripts/checkpatch.pl           | 22 ++++++++++++++++++++++
 7 files changed, 26 insertions(+), 6 deletions(-)

-- 
2.46.1


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

end of thread, other threads:[~2025-05-26 16:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 15:51 [PATCH v6 0/4] Clean up rustdocs and add new checkpatch checks Hridesh MG
2024-10-15 15:51 ` [PATCH v6 1/4] rust: make section names plural Hridesh MG
2024-10-15 15:51 ` [PATCH v6 2/4] checkpatch: warn on known non-plural rust doc headers Hridesh MG
2024-10-15 15:51 ` [PATCH v6 3/4] rust: kernel: clean up empty `///` lines Hridesh MG
2025-05-26 16:26   ` Miguel Ojeda
2024-10-15 15:51 ` [PATCH v6 4/4] checkpatch: warn on empty rust doc comments Hridesh MG
2024-10-29  6:11   ` Hridesh MG
2024-10-29 20:32     ` Miguel Ojeda
2024-11-21 16:54       ` Hridesh MG

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.