Skip to content

Commit 10e0442

Browse files
jannaujohn-cabaj
authored andcommitted
fixup! rust: sync: Replace static LockClassKey refs with a pointer wrapper
apply to workqueue.rs Signed-off-by: Janne Grunau <j@jannau.net> (cherry picked from commit a89499c https://github.com/AsahiLinux/linux) Signed-off-by: John Cabaj <john.cabaj@canonical.com>
1 parent ce0e303 commit 10e0442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/workqueue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl<T: ?Sized, const ID: u64> Work<T, ID> {
353353
/// Creates a new instance of [`Work`].
354354
#[inline]
355355
#[allow(clippy::new_ret_no_self)]
356-
pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self>
356+
pub fn new(name: &'static CStr, key: LockClassKey) -> impl PinInit<Self>
357357
where
358358
T: WorkItem<ID>,
359359
{

0 commit comments

Comments
 (0)