* [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
@ 2025-03-24 21:03 Miguel Ojeda
2025-03-24 21:03 ` [PATCH 01/10] drm/panic: add missing space Miguel Ojeda
` (12 more replies)
0 siblings, 13 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches
This is how it would look like -- I am not sure how many false positives
we will get, so I marked the last commit as RFC and perhaps we just want
this lint as an opt-in in e.g. `W=2`.
However, so far, we only got one ("KUnit"), plus a couple others that
are in C side comments that were copied, and thus someone may want to
keep them exactly in sync. So it seems pretty OK so far.
Another question is whether we want to commit to something like the
global list in `.clippy.toml`.
Anyway, please take a look -- the other commits should probably be
picked even if we do not enable the lint.
Thanks!
Miguel Ojeda (10):
drm/panic: add missing space
drm/panic: add missing Markdown code span
rust: alloc: add missing Markdown code spans
rust: alloc: add missing Markdown code span
rust: dma: add missing Markdown code span
rust: of: add missing Markdown code span
rust: pci: fix docs related to missing Markdown code spans
rust: platform: fix docs related to missing Markdown code spans
rust: task: add missing Markdown code spans and intra-doc links
rust: kbuild: enable `doc_markdown` Clippy lint
.clippy.toml | 4 ++++
Makefile | 1 +
drivers/gpu/drm/drm_panic_qr.rs | 4 ++--
rust/kernel/alloc.rs | 4 ++--
rust/kernel/alloc/allocator_test.rs | 2 +-
rust/kernel/dma.rs | 2 +-
rust/kernel/of.rs | 2 +-
rust/kernel/pci.rs | 15 +++++++++------
rust/kernel/platform.rs | 9 +++++----
rust/kernel/task.rs | 4 ++--
10 files changed, 28 insertions(+), 19 deletions(-)
--
2.49.0
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH 01/10] drm/panic: add missing space
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-25 9:02 ` Jocelyn Falempe
2025-03-24 21:03 ` [PATCH 02/10] drm/panic: add missing Markdown code span Miguel Ojeda
` (11 subsequent siblings)
12 siblings, 1 reply; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Jocelyn Falempe, dri-devel
Add missing space in sentence.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
drivers/gpu/drm/drm_panic_qr.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
index ecd87e8ffe05..9bd4d131f033 100644
--- a/drivers/gpu/drm/drm_panic_qr.rs
+++ b/drivers/gpu/drm/drm_panic_qr.rs
@@ -5,7 +5,7 @@
//! It is called from a panic handler, so it should't allocate memory and
//! does all the work on the stack or on the provided buffers. For
//! simplification, it only supports low error correction, and applies the
-//! first mask (checkerboard). It will draw the smallest QRcode that can
+//! first mask (checkerboard). It will draw the smallest QR code that can
//! contain the string passed as parameter. To get the most compact
//! QR code, the start of the URL is encoded as binary, and the
//! compressed kmsg is encoded as numeric.
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 02/10] drm/panic: add missing Markdown code span
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
2025-03-24 21:03 ` [PATCH 01/10] drm/panic: add missing space Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-25 9:05 ` Jocelyn Falempe
2025-03-24 21:03 ` [PATCH 03/10] rust: alloc: add missing Markdown code spans Miguel Ojeda
` (10 subsequent siblings)
12 siblings, 1 reply; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Jocelyn Falempe, dri-devel
Add missing Markdown code span.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
drivers/gpu/drm/drm_panic_qr.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
index 9bd4d131f033..a8f832598c70 100644
--- a/drivers/gpu/drm/drm_panic_qr.rs
+++ b/drivers/gpu/drm/drm_panic_qr.rs
@@ -914,7 +914,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
/// will be encoded as binary segment, otherwise it will be encoded
/// efficiently as a numeric segment, and appended to the URL.
/// * `data_len`: Length of the data, that needs to be encoded, must be less
-/// than data_size.
+/// than `data_size`.
/// * `data_size`: Size of data buffer, it should be at least 4071 bytes to hold
/// a V40 QR code. It will then be overwritten with the QR code image.
/// * `tmp`: A temporary buffer that the QR code encoder will use, to write the
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 03/10] rust: alloc: add missing Markdown code spans
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
2025-03-24 21:03 ` [PATCH 01/10] drm/panic: add missing space Miguel Ojeda
2025-03-24 21:03 ` [PATCH 02/10] drm/panic: add missing Markdown code span Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 04/10] rust: alloc: add missing Markdown code span Miguel Ojeda
` (9 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Wedson Almeida Filho
Add missing Markdown code spans.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: b6a006e21b82 ("rust: alloc: introduce allocation flags")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/alloc.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/alloc.rs b/rust/kernel/alloc.rs
index fc9c9c41cd79..a2c49e5494d3 100644
--- a/rust/kernel/alloc.rs
+++ b/rust/kernel/alloc.rs
@@ -94,10 +94,10 @@ pub mod flags {
///
/// A lower watermark is applied to allow access to "atomic reserves". The current
/// implementation doesn't support NMI and few other strict non-preemptive contexts (e.g.
- /// raw_spin_lock). The same applies to [`GFP_NOWAIT`].
+ /// `raw_spin_lock`). The same applies to [`GFP_NOWAIT`].
pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
- /// Typical for kernel-internal allocations. The caller requires ZONE_NORMAL or a lower zone
+ /// Typical for kernel-internal allocations. The caller requires `ZONE_NORMAL` or a lower zone
/// for direct access but can direct reclaim.
pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 04/10] rust: alloc: add missing Markdown code span
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (2 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 03/10] rust: alloc: add missing Markdown code spans Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 05/10] rust: dma: " Miguel Ojeda
` (8 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches
Add missing Markdown code span.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: dd09538fb409 ("rust: alloc: implement `Cmalloc` in module allocator_test")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/alloc/allocator_test.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/alloc/allocator_test.rs b/rust/kernel/alloc/allocator_test.rs
index e3240d16040b..039cd1e36c21 100644
--- a/rust/kernel/alloc/allocator_test.rs
+++ b/rust/kernel/alloc/allocator_test.rs
@@ -4,7 +4,7 @@
//! of those types (e.g. `CString`) use kernel allocators for instantiation.
//!
//! In order to allow userspace test cases to make use of such types as well, implement the
-//! `Cmalloc` allocator within the allocator_test module and type alias all kernel allocators to
+//! `Cmalloc` allocator within the `allocator_test` module and type alias all kernel allocators to
//! `Cmalloc`. The `Cmalloc` allocator uses libc's `realloc()` function as allocator backend.
#![allow(missing_docs)]
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 05/10] rust: dma: add missing Markdown code span
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (3 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 04/10] rust: alloc: add missing Markdown code span Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 06/10] rust: of: " Miguel Ojeda
` (7 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Abdiel Janulgue,
Daniel Almeida, Robin Murphy
Add missing Markdown code span.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: ad2907b4e308 ("rust: add dma coherent allocator abstraction")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/dma.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/dma.rs b/rust/kernel/dma.rs
index 8cdc76043ee7..35fd8a638473 100644
--- a/rust/kernel/dma.rs
+++ b/rust/kernel/dma.rs
@@ -94,7 +94,7 @@ pub mod attrs {
pub const DMA_ATTR_ALLOC_SINGLE_PAGES: Attrs = Attrs(bindings::DMA_ATTR_ALLOC_SINGLE_PAGES);
/// This tells the DMA-mapping subsystem to suppress allocation failure reports (similarly to
- /// __GFP_NOWARN).
+ /// `__GFP_NOWARN`).
pub const DMA_ATTR_NO_WARN: Attrs = Attrs(bindings::DMA_ATTR_NO_WARN);
/// Used to indicate that the buffer is fully accessible at an elevated privilege level (and
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 06/10] rust: of: add missing Markdown code span
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (4 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 05/10] rust: dma: " Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans Miguel Ojeda
` (6 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Rob Herring,
Saravana Kannan, Greg Kroah-Hartman, devicetree
Add missing Markdown code span.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: bbe3b4d1580d ("rust: of: add `of::DeviceId` abstraction")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/of.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/of.rs b/rust/kernel/of.rs
index 04f2d8ef29cb..60ed551b50fb 100644
--- a/rust/kernel/of.rs
+++ b/rust/kernel/of.rs
@@ -4,7 +4,7 @@
use crate::{bindings, device_id::RawDeviceId, prelude::*};
-/// IdTable type for OF drivers.
+/// `IdTable` type for OF drivers.
pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
/// An open firmware device id.
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (5 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 06/10] rust: of: " Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 22:53 ` Benno Lossin
2025-03-24 21:03 ` [PATCH 08/10] rust: platform: " Miguel Ojeda
` (5 subsequent siblings)
12 siblings, 1 reply; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Bjorn Helgaas,
FUJITA Tomonori, Greg Kroah-Hartman, linux-pci
In particular:
- Add missing Markdown code spans.
- Improve title for `DeviceId`, adding a link to the struct in the
C side, rather than referring to `bindings::`.
- Convert `TODO` from documentation to a normal comment, and put code
in block.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/pci.rs | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index f7b2743828ae..99413607c2b6 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -115,7 +115,9 @@ macro_rules! module_pci_driver {
};
}
-/// Abstraction for bindings::pci_device_id.
+/// Abstraction for the PCI device ID structure ([`pci_device_id`]).
+///
+/// [`pci_device_id`]: https://docs.kernel.org/PCI/pci.html#c.pci_device_id
#[repr(transparent)]
#[derive(Clone, Copy)]
pub struct DeviceId(bindings::pci_device_id);
@@ -170,7 +172,7 @@ fn index(&self) -> usize {
}
}
-/// IdTable type for PCI
+/// `IdTable` type for PCI.
pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
/// Create a PCI `IdTable` with its alias for modpost.
@@ -221,10 +223,11 @@ macro_rules! pci_device_table {
/// `Adapter` documentation for an example.
pub trait Driver {
/// The type holding information about each device id supported by the driver.
- ///
- /// TODO: Use associated_type_defaults once stabilized:
- ///
- /// type IdInfo: 'static = ();
+ // TODO: Use `associated_type_defaults` once stabilized:
+ //
+ // ```
+ // type IdInfo: 'static = ();
+ // ```
type IdInfo: 'static;
/// The table of device ids supported by the driver.
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 08/10] rust: platform: fix docs related to missing Markdown code spans
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (6 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 09/10] rust: task: add missing Markdown code spans and intra-doc links Miguel Ojeda
` (4 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Greg Kroah-Hartman,
Rafael J. Wysocki, Rob Herring (Arm)
Convert `TODO` from documentation to a normal comment, and put code in
block.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: 683a63befc73 ("rust: platform: add basic platform device / driver abstractions")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/platform.rs | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/rust/kernel/platform.rs b/rust/kernel/platform.rs
index 1297f5292ba9..2426eaf915bb 100644
--- a/rust/kernel/platform.rs
+++ b/rust/kernel/platform.rs
@@ -147,10 +147,11 @@ macro_rules! module_platform_driver {
///```
pub trait Driver {
/// The type holding driver private data about each device id supported by the driver.
- ///
- /// TODO: Use associated_type_defaults once stabilized:
- ///
- /// type IdInfo: 'static = ();
+ // TODO: Use associated_type_defaults once stabilized:
+ //
+ // ```
+ // type IdInfo: 'static = ();
+ // ```
type IdInfo: 'static;
/// The table of OF device ids supported by the driver.
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH 09/10] rust: task: add missing Markdown code spans and intra-doc links
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (7 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 08/10] rust: platform: " Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 21:03 ` [RFC PATCH 10/10] rust: kbuild: enable `doc_markdown` Clippy lint Miguel Ojeda
` (3 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Christian Brauner
Add missing Markdown code spans and also convert them into intra-doc
links.
This was found using the Clippy `doc_markdown` lint, which we may want
to enable.
Fixes: e0020ba6cbcb ("rust: add PidNamespace")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
rust/kernel/task.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/task.rs b/rust/kernel/task.rs
index 49012e711942..ca1209b997c4 100644
--- a/rust/kernel/task.rs
+++ b/rust/kernel/task.rs
@@ -156,10 +156,10 @@ fn deref(&self) -> &Self::Target {
}
}
- /// Returns a PidNamespace reference for the currently executing task's/thread's pid namespace.
+ /// Returns a [`PidNamespace`] reference for the currently executing task's/thread's pid namespace.
///
/// This function can be used to create an unbounded lifetime by e.g., storing the returned
- /// PidNamespace in a global variable which would be a bug. So the recommended way to get the
+ /// [`PidNamespace`] in a global variable which would be a bug. So the recommended way to get the
/// current task's/thread's pid namespace is to use the [`current_pid_ns`] macro because it is
/// safe.
///
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [RFC PATCH 10/10] rust: kbuild: enable `doc_markdown` Clippy lint
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (8 preceding siblings ...)
2025-03-24 21:03 ` [PATCH 09/10] rust: task: add missing Markdown code spans and intra-doc links Miguel Ojeda
@ 2025-03-24 21:03 ` Miguel Ojeda
2025-03-24 22:59 ` [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Benno Lossin
` (2 subsequent siblings)
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 21:03 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Masahiro Yamada,
Nathan Chancellor, Nicolas Schier, linux-kbuild
Clippy supports the `doc_markdown` lint [1] since 2016 [2]:
Checks for the presence of _, :: or camel-case words outside ticks
in documentation.
It is a very common note in Linux kernel reviews to mention that
documentation is missing a Markdown code span, e.g.:
/// Length of the data must be less than data_size.
should have been:
/// Length of the data must be less than `data_size`.
This lint can identify some of those cases automatically for us.
It also caught for us other typos or mis-documentation, such as a missing
code block.
Thus enable it, now that the tree is sufficiently clean.
Relatedly, it would be nice to have something similar [3] even for
comments (not just documentation), as well as for possible intra-doc links
(which should also have less false positives).
Link: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown [1]
Link: https://github.com/rust-lang/rust-clippy/commit/42bf37f49f49829507be4f2dfd6c5db9b8234b66 [2]
Link: https://github.com/rust-lang/rust/issues/131510 [3]
Link: https://lore.kernel.org/rust-for-linux/CANiq72=aVRMvOaU48DBLL=p+VoG3RvHK+K48XQhvHw3ARc0BNg@mail.gmail.com/
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
.clippy.toml | 4 ++++
Makefile | 1 +
2 files changed, 5 insertions(+)
diff --git a/.clippy.toml b/.clippy.toml
index 815c94732ed7..adc32c88176c 100644
--- a/.clippy.toml
+++ b/.clippy.toml
@@ -9,3 +9,7 @@ disallowed-macros = [
# it here, see: https://github.com/rust-lang/rust-clippy/issues/11303.
{ path = "kernel::dbg", reason = "the `dbg!` macro is intended as a debugging tool" },
]
+
+doc-valid-idents = [
+ "KUnit",
+]
diff --git a/Makefile b/Makefile
index 70bdbf2218fc..5d6baedc097f 100644
--- a/Makefile
+++ b/Makefile
@@ -477,6 +477,7 @@ export rust_common_flags := --edition=2021 \
-Wrust_2018_idioms \
-Wunreachable_pub \
-Wclippy::all \
+ -Wclippy::doc_markdown \
-Wclippy::ignored_unit_patterns \
-Wclippy::mut_mut \
-Wclippy::needless_bitwise_bool \
--
2.49.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans
2025-03-24 21:03 ` [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans Miguel Ojeda
@ 2025-03-24 22:53 ` Benno Lossin
2025-03-24 23:01 ` Miguel Ojeda
0 siblings, 1 reply; 24+ messages in thread
From: Benno Lossin @ 2025-03-24 22:53 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg,
Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux,
linux-kernel, patches, Bjorn Helgaas, FUJITA Tomonori,
Greg Kroah-Hartman, linux-pci
On Mon Mar 24, 2025 at 10:03 PM CET, Miguel Ojeda wrote:
> diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
> index f7b2743828ae..99413607c2b6 100644
> --- a/rust/kernel/pci.rs
> +++ b/rust/kernel/pci.rs
> @@ -115,7 +115,9 @@ macro_rules! module_pci_driver {
> };
> }
>
> -/// Abstraction for bindings::pci_device_id.
> +/// Abstraction for the PCI device ID structure ([`pci_device_id`]).
Wouldn't "([`struct pci_device_id`])" make more sense?
---
Cheers,
Benno
> +///
> +/// [`pci_device_id`]: https://docs.kernel.org/PCI/pci.html#c.pci_device_id
> #[repr(transparent)]
> #[derive(Clone, Copy)]
> pub struct DeviceId(bindings::pci_device_id);
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (9 preceding siblings ...)
2025-03-24 21:03 ` [RFC PATCH 10/10] rust: kbuild: enable `doc_markdown` Clippy lint Miguel Ojeda
@ 2025-03-24 22:59 ` Benno Lossin
2025-03-24 23:09 ` Miguel Ojeda
2025-05-21 14:01 ` Miguel Ojeda
2025-05-25 21:20 ` Miguel Ojeda
12 siblings, 1 reply; 24+ messages in thread
From: Benno Lossin @ 2025-03-24 22:59 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Andreas Hindborg,
Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux,
linux-kernel, patches
On Mon Mar 24, 2025 at 10:03 PM CET, Miguel Ojeda wrote:
> This is how it would look like -- I am not sure how many false positives
> we will get, so I marked the last commit as RFC and perhaps we just want
> this lint as an opt-in in e.g. `W=2`.
I think we should try. If it's too much trouble, we can disable it
again.
> However, so far, we only got one ("KUnit"), plus a couple others that
> are in C side comments that were copied, and thus someone may want to
> keep them exactly in sync. So it seems pretty OK so far.
>
> Another question is whether we want to commit to something like the
> global list in `.clippy.toml`.
Not sure what you mean by this, but I think we need some way to disable
it for some acronyms.
> Anyway, please take a look -- the other commits should probably be
> picked even if we do not enable the lint.
For the entire series:
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
---
Cheers,
Benno
> Thanks!
>
> Miguel Ojeda (10):
> drm/panic: add missing space
> drm/panic: add missing Markdown code span
> rust: alloc: add missing Markdown code spans
> rust: alloc: add missing Markdown code span
> rust: dma: add missing Markdown code span
> rust: of: add missing Markdown code span
> rust: pci: fix docs related to missing Markdown code spans
> rust: platform: fix docs related to missing Markdown code spans
> rust: task: add missing Markdown code spans and intra-doc links
> rust: kbuild: enable `doc_markdown` Clippy lint
>
> .clippy.toml | 4 ++++
> Makefile | 1 +
> drivers/gpu/drm/drm_panic_qr.rs | 4 ++--
> rust/kernel/alloc.rs | 4 ++--
> rust/kernel/alloc/allocator_test.rs | 2 +-
> rust/kernel/dma.rs | 2 +-
> rust/kernel/of.rs | 2 +-
> rust/kernel/pci.rs | 15 +++++++++------
> rust/kernel/platform.rs | 9 +++++----
> rust/kernel/task.rs | 4 ++--
> 10 files changed, 28 insertions(+), 19 deletions(-)
>
> --
> 2.49.0
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans
2025-03-24 22:53 ` Benno Lossin
@ 2025-03-24 23:01 ` Miguel Ojeda
0 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 23:01 UTC (permalink / raw)
To: Benno Lossin
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, rust-for-linux, linux-kernel, patches,
Bjorn Helgaas, FUJITA Tomonori, Greg Kroah-Hartman, linux-pci
On Mon, Mar 24, 2025 at 11:54 PM Benno Lossin <benno.lossin@proton.me> wrote:
>
> Wouldn't "([`struct pci_device_id`])" make more sense?
Yeah, definitely, it should have the `struct` to be consistent with
our usual style.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-03-24 22:59 ` [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Benno Lossin
@ 2025-03-24 23:09 ` Miguel Ojeda
2025-03-25 0:17 ` Benno Lossin
0 siblings, 1 reply; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-24 23:09 UTC (permalink / raw)
To: Benno Lossin
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, rust-for-linux, linux-kernel, patches
On Mon, Mar 24, 2025 at 11:59 PM Benno Lossin <benno.lossin@proton.me> wrote:
>
> Not sure what you mean by this, but I think we need some way to disable
> it for some acronyms.
I meant that maintaining the list in that file (i.e. globally) could
be a bit painful if we get a lot of terms, but I guess we can find
workarounds for that if it gets bad.
> Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-03-24 23:09 ` Miguel Ojeda
@ 2025-03-25 0:17 ` Benno Lossin
0 siblings, 0 replies; 24+ messages in thread
From: Benno Lossin @ 2025-03-25 0:17 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, rust-for-linux, linux-kernel, patches
On Tue Mar 25, 2025 at 12:09 AM CET, Miguel Ojeda wrote:
> On Mon, Mar 24, 2025 at 11:59 PM Benno Lossin <benno.lossin@proton.me> wrote:
>>
>> Not sure what you mean by this, but I think we need some way to disable
>> it for some acronyms.
>
> I meant that maintaining the list in that file (i.e. globally) could
> be a bit painful if we get a lot of terms, but I guess we can find
> workarounds for that if it gets bad.
I think we can just see if it's a problem. If we keep each term on its
own line, merging should be easy.
---
Cheers,
Benno
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 01/10] drm/panic: add missing space
2025-03-24 21:03 ` [PATCH 01/10] drm/panic: add missing space Miguel Ojeda
@ 2025-03-25 9:02 ` Jocelyn Falempe
0 siblings, 0 replies; 24+ messages in thread
From: Jocelyn Falempe @ 2025-03-25 9:02 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
dri-devel
On 24/03/2025 22:03, Miguel Ojeda wrote:
> Add missing space in sentence.
>
> This was found using the Clippy `doc_markdown` lint, which we may want
> to enable.
Thanks, it looks good to me.
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
>
> Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
> ---
> drivers/gpu/drm/drm_panic_qr.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
> index ecd87e8ffe05..9bd4d131f033 100644
> --- a/drivers/gpu/drm/drm_panic_qr.rs
> +++ b/drivers/gpu/drm/drm_panic_qr.rs
> @@ -5,7 +5,7 @@
> //! It is called from a panic handler, so it should't allocate memory and
> //! does all the work on the stack or on the provided buffers. For
> //! simplification, it only supports low error correction, and applies the
> -//! first mask (checkerboard). It will draw the smallest QRcode that can
> +//! first mask (checkerboard). It will draw the smallest QR code that can
> //! contain the string passed as parameter. To get the most compact
> //! QR code, the start of the URL is encoded as binary, and the
> //! compressed kmsg is encoded as numeric.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 02/10] drm/panic: add missing Markdown code span
2025-03-24 21:03 ` [PATCH 02/10] drm/panic: add missing Markdown code span Miguel Ojeda
@ 2025-03-25 9:05 ` Jocelyn Falempe
2025-03-25 19:04 ` Miguel Ojeda
0 siblings, 1 reply; 24+ messages in thread
From: Jocelyn Falempe @ 2025-03-25 9:05 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
rust-for-linux, linux-kernel, patches, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
dri-devel
On 24/03/2025 22:03, Miguel Ojeda wrote:
> Add missing Markdown code span.
>
> This was found using the Clippy `doc_markdown` lint, which we may want
> to enable.
Thanks, it looks good to me.
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
You want to take the whole series in the rust tree?
Otherwise I can push the patch 1-2 to drm-misc-next if needed.
--
Jocelyn
>
> Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
> ---
> drivers/gpu/drm/drm_panic_qr.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
> index 9bd4d131f033..a8f832598c70 100644
> --- a/drivers/gpu/drm/drm_panic_qr.rs
> +++ b/drivers/gpu/drm/drm_panic_qr.rs
> @@ -914,7 +914,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
> /// will be encoded as binary segment, otherwise it will be encoded
> /// efficiently as a numeric segment, and appended to the URL.
> /// * `data_len`: Length of the data, that needs to be encoded, must be less
> -/// than data_size.
> +/// than `data_size`.
> /// * `data_size`: Size of data buffer, it should be at least 4071 bytes to hold
> /// a V40 QR code. It will then be overwritten with the QR code image.
> /// * `tmp`: A temporary buffer that the QR code encoder will use, to write the
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 02/10] drm/panic: add missing Markdown code span
2025-03-25 9:05 ` Jocelyn Falempe
@ 2025-03-25 19:04 ` Miguel Ojeda
2025-03-27 15:22 ` Jocelyn Falempe
0 siblings, 1 reply; 24+ messages in thread
From: Miguel Ojeda @ 2025-03-25 19:04 UTC (permalink / raw)
To: Jocelyn Falempe
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel,
patches, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, dri-devel
On Tue, Mar 25, 2025 at 10:05 AM Jocelyn Falempe <jfalempe@redhat.com> wrote:
>
> Thanks, it looks good to me.
>
> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
>
> You want to take the whole series in the rust tree?
>
> Otherwise I can push the patch 1-2 to drm-misc-next if needed.
Please take them if possible, since others may want to take them
through their tree anyway, plus it should have less conflicts if you
change other bits, plus these are independent fixes anyway that can go
in on their own whether or not the lint gets eventually enabled.
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 02/10] drm/panic: add missing Markdown code span
2025-03-25 19:04 ` Miguel Ojeda
@ 2025-03-27 15:22 ` Jocelyn Falempe
0 siblings, 0 replies; 24+ messages in thread
From: Jocelyn Falempe @ 2025-03-27 15:22 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel,
patches, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, dri-devel
On 25/03/2025 20:04, Miguel Ojeda wrote:
> On Tue, Mar 25, 2025 at 10:05 AM Jocelyn Falempe <jfalempe@redhat.com> wrote:
>>
>> Thanks, it looks good to me.
>>
>> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
>>
>> You want to take the whole series in the rust tree?
>>
>> Otherwise I can push the patch 1-2 to drm-misc-next if needed.
>
> Please take them if possible, since others may want to take them
> through their tree anyway, plus it should have less conflicts if you
> change other bits, plus these are independent fixes anyway that can go
> in on their own whether or not the lint gets eventually enabled.
I just pushed 1-2 to drm-misc-next
Thanks,
--
Jocelyn
>
> Thanks!
>
> Cheers,
> Miguel
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (10 preceding siblings ...)
2025-03-24 22:59 ` [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Benno Lossin
@ 2025-05-21 14:01 ` Miguel Ojeda
2025-05-21 15:09 ` Greg Kroah-Hartman
2025-05-24 14:18 ` Danilo Krummrich
2025-05-25 21:20 ` Miguel Ojeda
12 siblings, 2 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-05-21 14:01 UTC (permalink / raw)
To: Abdiel Janulgue, Danilo Krummrich, Rob Herring, Saravana Kannan,
Greg Kroah-Hartman, Rafael J. Wysocki
Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
rust-for-linux, linux-kernel, patches, Miguel Ojeda
On Mon, Mar 24, 2025 at 10:04 PM Miguel Ojeda <ojeda@kernel.org> wrote:
>
> rust: alloc: add missing Markdown code spans
> rust: alloc: add missing Markdown code span
> rust: dma: add missing Markdown code span
> rust: of: add missing Markdown code span
> rust: pci: fix docs related to missing Markdown code spans
> rust: platform: fix docs related to missing Markdown code spans
> rust: task: add missing Markdown code spans and intra-doc links
Abdiel, Danilo, Rob, Saravana, Greg, Rafael: anything against me
picking these ones up?
If you would like to pick them up through your respective trees, then
that is great too.
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-05-21 14:01 ` Miguel Ojeda
@ 2025-05-21 15:09 ` Greg Kroah-Hartman
2025-05-24 14:18 ` Danilo Krummrich
1 sibling, 0 replies; 24+ messages in thread
From: Greg Kroah-Hartman @ 2025-05-21 15:09 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Abdiel Janulgue, Danilo Krummrich, Rob Herring, Saravana Kannan,
Rafael J. Wysocki, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, rust-for-linux, linux-kernel, patches, Miguel Ojeda
On Wed, May 21, 2025 at 04:01:28PM +0200, Miguel Ojeda wrote:
> On Mon, Mar 24, 2025 at 10:04 PM Miguel Ojeda <ojeda@kernel.org> wrote:
> >
> > rust: alloc: add missing Markdown code spans
> > rust: alloc: add missing Markdown code span
> > rust: dma: add missing Markdown code span
> > rust: of: add missing Markdown code span
> > rust: pci: fix docs related to missing Markdown code spans
> > rust: platform: fix docs related to missing Markdown code spans
> > rust: task: add missing Markdown code spans and intra-doc links
>
> Abdiel, Danilo, Rob, Saravana, Greg, Rafael: anything against me
> picking these ones up?
No objection from me for you to take these through the rust tree:
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-05-21 14:01 ` Miguel Ojeda
2025-05-21 15:09 ` Greg Kroah-Hartman
@ 2025-05-24 14:18 ` Danilo Krummrich
1 sibling, 0 replies; 24+ messages in thread
From: Danilo Krummrich @ 2025-05-24 14:18 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Abdiel Janulgue, Rob Herring, Saravana Kannan, Greg Kroah-Hartman,
Rafael J. Wysocki, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, rust-for-linux, linux-kernel, patches, Miguel Ojeda
On 21.05.2025 16:01, Miguel Ojeda wrote:
> On Mon, Mar 24, 2025 at 10:04 PM Miguel Ojeda <ojeda@kernel.org> wrote:
>>
>> rust: alloc: add missing Markdown code spans
>> rust: alloc: add missing Markdown code span
>> rust: dma: add missing Markdown code span
>> rust: of: add missing Markdown code span
>> rust: pci: fix docs related to missing Markdown code spans
>> rust: platform: fix docs related to missing Markdown code spans
>> rust: task: add missing Markdown code spans and intra-doc links
>
> Abdiel, Danilo, Rob, Saravana, Greg, Rafael: anything against me
> picking these ones up?
Acked-by: Danilo Krummrich <dakr@kernel.org>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
` (11 preceding siblings ...)
2025-05-21 14:01 ` Miguel Ojeda
@ 2025-05-25 21:20 ` Miguel Ojeda
12 siblings, 0 replies; 24+ messages in thread
From: Miguel Ojeda @ 2025-05-25 21:20 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, rust-for-linux, linux-kernel, patches
On Mon, Mar 24, 2025 at 10:04 PM Miguel Ojeda <ojeda@kernel.org> wrote:
>
> rust: alloc: add missing Markdown code spans
> rust: alloc: add missing Markdown code span
> rust: dma: add missing Markdown code span
> rust: pci: fix docs related to missing Markdown code spans
> rust: platform: fix docs related to missing Markdown code spans
> rust: task: add missing Markdown code spans and intra-doc links
Applied to `rust-next`-- thanks everyone!
I picked the ones Acked by Greg and Danilo (thanks!), plus Jocelyn
picked the drm/panic ones a while ago. So now only the `of` one is
pending, but there are new cases coming, so I may send another version
of the series to clean them and possibly enable the lint.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2025-05-25 21:20 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 21:03 [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Miguel Ojeda
2025-03-24 21:03 ` [PATCH 01/10] drm/panic: add missing space Miguel Ojeda
2025-03-25 9:02 ` Jocelyn Falempe
2025-03-24 21:03 ` [PATCH 02/10] drm/panic: add missing Markdown code span Miguel Ojeda
2025-03-25 9:05 ` Jocelyn Falempe
2025-03-25 19:04 ` Miguel Ojeda
2025-03-27 15:22 ` Jocelyn Falempe
2025-03-24 21:03 ` [PATCH 03/10] rust: alloc: add missing Markdown code spans Miguel Ojeda
2025-03-24 21:03 ` [PATCH 04/10] rust: alloc: add missing Markdown code span Miguel Ojeda
2025-03-24 21:03 ` [PATCH 05/10] rust: dma: " Miguel Ojeda
2025-03-24 21:03 ` [PATCH 06/10] rust: of: " Miguel Ojeda
2025-03-24 21:03 ` [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans Miguel Ojeda
2025-03-24 22:53 ` Benno Lossin
2025-03-24 23:01 ` Miguel Ojeda
2025-03-24 21:03 ` [PATCH 08/10] rust: platform: " Miguel Ojeda
2025-03-24 21:03 ` [PATCH 09/10] rust: task: add missing Markdown code spans and intra-doc links Miguel Ojeda
2025-03-24 21:03 ` [RFC PATCH 10/10] rust: kbuild: enable `doc_markdown` Clippy lint Miguel Ojeda
2025-03-24 22:59 ` [PATCH 00/10] rust: clean and enable Clippy `doc_markdown` lint Benno Lossin
2025-03-24 23:09 ` Miguel Ojeda
2025-03-25 0:17 ` Benno Lossin
2025-05-21 14:01 ` Miguel Ojeda
2025-05-21 15:09 ` Greg Kroah-Hartman
2025-05-24 14:18 ` Danilo Krummrich
2025-05-25 21:20 ` 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).