Skip to content

Commit d0b0852

Browse files
author
Danilo Krummrich
committed
rust: pci: do not depend on CONFIG_PCI_MSI
The PCI abstractions do not actually depend on CONFIG_PCI_MSI; it also breaks drivers that only depend on CONFIG_PCI, hence drop it. While at it, move the module entry to its correct location. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 3a9c091 ("rust: pci: add basic PCI device / driver abstractions") Signed-off-by: Danilo Krummrich <[email protected]>
1 parent 98deb8c commit d0b0852

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ pub mod miscdevice;
6060
pub mod net;
6161
pub mod of;
6262
pub mod page;
63+
#[cfg(CONFIG_PCI)]
64+
pub mod pci;
6365
pub mod pid_namespace;
6466
pub mod platform;
6567
pub mod prelude;
@@ -86,8 +88,6 @@ pub mod workqueue;
8688
pub use bindings;
8789
pub mod io;
8890
pub use macros;
89-
#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
90-
pub mod pci;
9191
pub use uapi;
9292

9393
/// Prefix to appear before log messages printed from within the `kernel` crate.

0 commit comments

Comments
 (0)