Skip to content

Commit 2e951c5

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 <pstanner@redhat.com> Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
1 parent 8b2f30f commit 2e951c5

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
@@ -62,7 +62,7 @@ pub mod workqueue;
6262
#[doc(hidden)]
6363
pub use bindings;
6464
pub use macros;
65-
#[cfg(CONFIG_PCI)]
65+
#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
6666
pub mod pci;
6767
pub use uapi;
6868

0 commit comments

Comments
 (0)