[PATCH] rust: pci: export ConfigSpace

Zijing Zhang posted 1 patch 1 week ago
rust/kernel/pci.rs | 1 +
1 file changed, 1 insertion(+)
[PATCH] rust: pci: export ConfigSpace
Posted by Zijing Zhang 1 week ago
Re-export ConfigSpace from kernel::pci so users can name the returned
type from Device::config_space*().

Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>
---
 rust/kernel/pci.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index f347c2f7c3a6..af74ddff6114 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -42,6 +42,7 @@
 };
 pub use self::io::{
     Bar,
+    ConfigSpace,
     ConfigSpaceKind,
     ConfigSpaceSize,
     Extended,
-- 
2.52.0
Re: [PATCH] rust: pci: export ConfigSpace
Posted by Alexandre Courbot 1 week ago
On Sat Jan 31, 2026 at 11:20 AM JST, Zijing Zhang wrote:
> Re-export ConfigSpace from kernel::pci so users can name the returned
> type from Device::config_space*().
>
> Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>

This should also have:

Fixes: 4dc0bacb1d3c ("rust: pci: add config space read/write support")

With that,

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>