rust: iommu: fix Rust formatting
Miguel Ojeda
maintainerPATCH 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.
---
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.
rust/kernel/iommu/pgtable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/iommu/pgtable.rs +1 -1
@@ -14,7 +14,7 @@ bindings, device::{ Bound, - Device // + Device, // }, devres::Devres, error::to_result,
--
2.52.0
Miguel Ojeda
maintainerPATCH 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.
---
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.
rust/kernel/iommu/pgtable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/iommu/pgtable.rs +1 -1
@@ -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
Applied both, thanks Miguel.
Quoted 7 lines · Miguel Ojeda
The Rust kernel code should be kept
rustfmt-clean [1].Thus run the
rustfmttarget to fix the formatting issue.Fixes 2e2f6b0ef855 ("rust: iommu: add io_pgtable abstraction")Signed-off-by Miguel Ojeda <[email protected]>
Thanks Miguel. For both patches:
Alice