On Wed Mar 18, 2026 at 3:41 PM CET, Miguel Ojeda wrote:
> On Wed, Mar 18, 2026 at 3:31 PM Alice Ryhl <[email protected]> wrote:
>>
>> In principle this is possible using
>>
>> #[path = "pci/pci.rs"]
>> pub mod pci;
>
> No, I meant supported natively, i.e. without having to write an extra
> file everywhere (which could perhaps be simpler as just a symlink
> instead).

What do you mean with extra file?

renamed:    rust/kernel/pci.rs -> rust/kernel/pci/pci.rs

diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
index 34b924819288..4b6396aec030 100644
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@ -131,6 +131,7 @@
 pub mod opp;
 pub mod page;
 #[cfg(CONFIG_PCI)]
+#[path = "pci/pci.rs"]
 pub mod pci;
 pub mod pid_namespace;
 pub mod platform;

Reply via email to