]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: io: mem: enable IoRequest doc-tests
authorDanilo Krummrich <dakr@kernel.org>
Sat, 19 Jul 2025 14:08:16 +0000 (16:08 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 20 Jul 2025 17:43:14 +0000 (19:43 +0200)
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.

Link: https://lore.kernel.org/r/DBG39YMN2TX6.1VR4PEQSI8PSG@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/io/mem.rs

index 50d4ec3eb62378d991530803d4b12beb8c491094..cc9feb2897d8687f2179daf2e9733763cc362b83 100644 (file)
@@ -43,7 +43,7 @@ impl<'a> IoRequest<'a> {
     /// 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 @@ impl<'a> IoRequest<'a> {
     /// The following example uses a [`platform::Device`] for illustration
     /// purposes.
     ///
-    /// ```ignore
+    /// ```no_run
     /// use kernel::{bindings, c_str, platform, of, device::Core};
     /// struct SampleDriver;
     ///