Skip to contentSkip to conversation

rust: iommu: fix Rust formatting

PATCH Applied Miguel Ojeda 3 participants 4 messages Jan 21 – Jan 22

Subsystems (2)
lore
Share & tools
lore

Miguel Ojeda

author maintainer
#0 lore raw

PATCH 1/2 rust: iommu: fix Rust formatting

The Rust kernel code should be kept rustfmt-clean [1].

Thus run the rustfmt target to fix the formatting issue.

Fixes 2e2f6b0ef855 ("rust: iommu: add io_pgtable abstraction")

---
It would be nice to clean this up, so that Mark may start enforcing it in linux-next -- thanks!

Please feel free to rebase if needed instead.

Cc Mark Brown <[email protected]>
 rust/kernel/iommu/pgtable.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/iommu/pgtable.rs +1 -1
index 6135ba141e48..916e1f509e62 100644
@@ -14,7 +14,7 @@
     bindings,
     device::{
         Bound,
-        Device //
+        Device, //
     },
     devres::Devres,
     error::to_result,

--
2.52.0

author maintainer
#1 lore raw

PATCH 2/2 rust: iommu: fix `srctree` link warning

The Rust kernel code should be kept rustdoc-clean [1].

Our custom srctree link checker in the rustdoc target reports:

warning: srctree/ link to include/io-pgtable.h does not exist

Thus fix it.

Fixes 2e2f6b0ef855 ("rust: iommu: add io_pgtable abstraction")

---
It would be nice to clean this up, so that Mark may start enforcing it in linux-next -- thanks!

Please feel free to rebase if needed instead.

Cc Mark Brown <[email protected]>
 rust/kernel/iommu/pgtable.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/iommu/pgtable.rs +1 -1
index 916e1f509e62..c88e38fd938a 100644
@@ -2,7 +2,7 @@
 
 //! IOMMU page table management.
 //!
-//! C header: [`include/io-pgtable.h`](srctree/include/io-pgtable.h)
+//! C header: [`include/linux/io-pgtable.h`](srctree/include/linux/io-pgtable.h)
 
 use core::{
     marker::PhantomData,

--
2.52.0