diff options
author | Alice Ryhl <[email protected]> | 2024-01-29 14:58:37 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2024-02-18 21:22:27 +0100 |
commit | e283ee239220908118d66eea46dd8bb6175767b2 (patch) | |
tree | 4f03fd85351932e78e76547cbce624007e86ad0b /rust/kernel/lib.rs | |
parent | ed6d0bed343ee5448f3c7b4884adc54c15e63984 (diff) |
rust: kernel: add reexports for macros
Currently, all macros are reexported with #[macro_export] only, which
means that to access `new_work!` from the workqueue, you need to import
it from the path `kernel::new_work` instead of importing it from the
workqueue module like all other items in the workqueue. By adding
reexports of the macros, it becomes possible to import the macros from
the correct modules.
It's still possible to import the macros from the root, but I don't
think we can do anything about that.
There is no functional change. This is merely a code cleanliness
improvement.
Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Trevor Gross <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Tested-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Removed new `use kernel::prelude::*`s, reworded title. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/lib.rs')
0 files changed, 0 insertions, 0 deletions