Skip to content

Commit

Permalink
rust: pci: Fix a build system bug when PCI_MSI is not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
metaspace committed Feb 16, 2024
1 parent 8b2f30f commit 2e951c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub mod workqueue;
#[doc(hidden)]
pub use bindings;
pub use macros;
#[cfg(CONFIG_PCI)]
#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
pub mod pci;
pub use uapi;

Expand Down

0 comments on commit 2e951c5

Please sign in to comment.