Skip to content

Commit 60e1eee

Browse files
Andreas Hindborgaxboe
authored andcommitted
rust: configfs: re-export configfs_attrs from configfs module
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>
1 parent b1dae0b commit 60e1eee

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

rust/kernel/configfs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,3 +1039,5 @@ macro_rules! configfs_attrs {
10391039
};
10401040

10411041
}
1042+
1043+
pub use crate::configfs_attrs;

samples/rust/rust_configfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use kernel::alloc::flags;
66
use kernel::c_str;
77
use kernel::configfs;
8-
use kernel::configfs_attrs;
8+
use kernel::configfs::configfs_attrs;
99
use kernel::new_mutex;
1010
use kernel::page::PAGE_SIZE;
1111
use kernel::prelude::*;

0 commit comments

Comments
 (0)