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
  • Miguel Ojeda's avatar
    workqueue: rust: sync with `WORK_CPU_UNBOUND` change · 3e0bc285
    Miguel Ojeda authored Feb 01, 2024
    Commit e563d0a7 ("workqueue: Break up enum definitions and give
    names to the types") gives a name to the `enum` where `WORK_CPU_UNBOUND`
    was defined, so `bindgen` changes its output from e.g.:
    
        pub type _bindgen_ty_10 = core::ffi::c_uint;
        pub const WORK_CPU_UNBOUND: _bindgen_ty_10 = 64;
    
    to e.g.:
    
        pub type wq_misc_consts = core::ffi::c_uint;
        pub const wq_misc_consts_WORK_CPU_UNBOUND: wq_misc_consts = 64;
    
    Thus update Rust's side to match the change (which requires a slight
    reformat of the code), fixing the build error.
    
    Closes: https://lore.kernel.org/rust-for-linux/CANiq72=9PZ89bCAVX0ZV4cqrYSLoZWyn-d_K4KpBMHjwUMdC3A@mail.gmail.com/
    Fixes: e563d0a7
    
     ("workqueue: Break up enum definitions and give names to the types")
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    Reviewed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    3e0bc285
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7