Skip to content

Commit dac3bd7

Browse files
jannauherrnst
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>
1 parent 8fcac36 commit dac3bd7

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)