mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
Merge tag 'rust-fixes-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull Rust fix from Miguel Ojeda:
- 'hrtimer': fix future compile error when the 'impl_has_hr_timer!'
macro starts to get called
* tag 'rust-fixes-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux:
rust: time: Fix compile error in impl_has_hr_timer macro
This commit is contained in:
@@ -517,7 +517,7 @@ macro_rules! impl_has_hr_timer {
|
||||
) -> *mut Self {
|
||||
// SAFETY: As per the safety requirement of this function, `ptr`
|
||||
// is pointing inside a `$timer_type`.
|
||||
unsafe { ::kernel::container_of!(ptr, $timer_type, $field).cast_mut() }
|
||||
unsafe { ::kernel::container_of!(ptr, $timer_type, $field) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user