Skip to content

Commit 75baacb

Browse files
committed
rust: pci: Fix a build system bug when PCI_MSI is not enabled
When enabling PCI without PCI_MSI, Rust pci code would fail to build. Fix this by requiring both PCI and PCI_MSI to build Rust pci abstractions. Reported-by: Philipp Stanner <[email protected]> Signed-off-by: Andreas Hindborg <[email protected]>
1 parent 9ea0cb6 commit 75baacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub mod workqueue;
6161
#[doc(hidden)]
6262
pub use bindings;
6363
pub use macros;
64-
#[cfg(CONFIG_PCI)]
64+
#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
6565
pub mod pci;
6666
pub use uapi;
6767

0 commit comments

Comments
 (0)