rust/kernel/io/mem.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
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
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!
© 2016 - 2026 Red Hat, Inc.