]> www.infradead.org Git - users/griffoul/linux.git/commitdiff
rust: configfs: re-export `configfs_attrs` from `configfs` module
authorAndreas Hindborg <a.hindborg@kernel.org>
Tue, 2 Sep 2025 09:55:00 +0000 (11:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Sep 2025 11:23:56 +0000 (05:23 -0600)
Re-export `configfs_attrs` from `configfs` module, so that users can import
the macro from the `configfs` module rather than the root of the `kernel`
crate.

Also update users to import from the new path.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-6-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
rust/kernel/configfs.rs
samples/rust/rust_configfs.rs

index 2736b798cdc6c447f901914c7a62742bd0500fe4..318a2f073d1c7de5d9f619d1c5d80cd17dfd4a25 100644 (file)
@@ -1039,3 +1039,5 @@ macro_rules! configfs_attrs {
     };
 
 }
+
+pub use crate::configfs_attrs;
index af04bfa35cb28e204a446884902fa46c261eb4af..ad364fb93e5301241e5d336efeefd3b1c46d67bb 100644 (file)
@@ -5,7 +5,7 @@
 use kernel::alloc::flags;
 use kernel::c_str;
 use kernel::configfs;
-use kernel::configfs_attrs;
+use kernel::configfs::configfs_attrs;
 use kernel::new_mutex;
 use kernel::page::PAGE_SIZE;
 use kernel::prelude::*;