Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • rust
  • kernel
  • workqueue.rs
Find file BlameHistoryPermalink
  • Alice Ryhl's avatar
    rust: kernel: add reexports for macros · e283ee23
    Alice Ryhl authored Jan 29, 2024
    
    
    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: default avatarAlice Ryhl <aliceryhl@google.com>
    Reviewed-by: default avatarTrevor Gross <tmgross@umich.edu>
    Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
    Tested-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    Link: https://lore.kernel.org/r/20240129145837.1419880-1-aliceryhl@google.com
    
    
    [ Removed new `use kernel::prelude::*`s, reworded title. ]
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    e283ee23
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7