[PATCH] rust: io: mem: enable IoRequest doc-tests

Danilo Krummrich posted 1 patch 2 months, 2 weeks ago
rust/kernel/io/mem.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] rust: io: mem: enable IoRequest doc-tests
Posted by Danilo Krummrich 2 months, 2 weeks ago
When introduced, the IoRequest doc-tests did depend on infrastructure
added in subsequent patches, hence they temporarily had to be disabled.

Now that we have the corresponding platform device infrastructure,
enable them.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>
---
 rust/kernel/io/mem.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust/kernel/io/mem.rs b/rust/kernel/io/mem.rs
index 58c384291f15..ecef19f7d176 100644
--- a/rust/kernel/io/mem.rs
+++ b/rust/kernel/io/mem.rs
@@ -43,7 +43,7 @@ pub unsafe fn new(device: &'a Device<Bound>, resource: &'a Resource) -> Self {
     /// The following example uses a [`platform::Device`] for illustration
     /// purposes.
     ///
-    /// ```ignore
+    /// ```no_run
     /// use kernel::{bindings, c_str, platform, of, device::Core};
     /// struct SampleDriver;
     ///
@@ -101,7 +101,7 @@ pub fn iomap_exclusive_sized<const SIZE: usize>(
     /// The following example uses a [`platform::Device`] for illustration
     /// purposes.
     ///
-    /// ```ignore
+    /// ```no_run
     /// use kernel::{bindings, c_str, platform, of, device::Core};
     /// struct SampleDriver;
     ///
-- 
2.50.0
Re: [PATCH] rust: io: mem: enable IoRequest doc-tests
Posted by Danilo Krummrich 2 months, 2 weeks ago
On Sat Jul 19, 2025 at 4:08 PM CEST, Danilo Krummrich wrote:
> When introduced, the IoRequest doc-tests did depend on infrastructure
> added in subsequent patches, hence they temporarily had to be disabled.
>
> Now that we have the corresponding platform device infrastructure,
> enable them.
>
> Signed-off-by: Danilo Krummrich <dakr@kernel.org>

Applied to driver-core-testing, thanks!