Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andreas Hindborg and committed by
Jens Axboe
60e1eeed b1dae0be

+3 -1
+2
rust/kernel/configfs.rs
··· 1039 1039 }; 1040 1040 1041 1041 } 1042 + 1043 + pub use crate::configfs_attrs;
+1 -1
samples/rust/rust_configfs.rs
··· 5 5 use kernel::alloc::flags; 6 6 use kernel::c_str; 7 7 use kernel::configfs; 8 - use kernel::configfs_attrs; 8 + use kernel::configfs::configfs_attrs; 9 9 use kernel::new_mutex; 10 10 use kernel::page::PAGE_SIZE; 11 11 use kernel::prelude::*;