diff options
| author | FUJITA Tomonori <[email protected]> | 2025-06-06 02:05:05 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-06-10 18:11:36 +0000 |
| commit | 5b2d595efbfc9c46823bdb9ef11e1f9fa46adf9d (patch) | |
| tree | 57ca05c694fe05f340071dfa5b2eaaccade5aa04 /lib/crypto/mpi/mpi-mul.c | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-5b2d595efbfc9c46823bdb9ef11e1f9fa46adf9d.tar.gz kernel-5b2d595efbfc9c46823bdb9ef11e1f9fa46adf9d.zip | |
rust: time: Fix compile error in impl_has_hr_timer macro
Fix a compile error in the `impl_has_hr_timer!` macro as follows:
error[E0599]: no method named cast_mut found for raw pointer *mut Foo in the current scope
The `container_of!` macro already returns a mutable pointer when used
in a `*mut T` context so the `.cast_mut()` method is not available.
[ We missed this one because there is no caller yet and it is
a macro. - Miguel ]
Fixes: 74d6a606c2b3 ("rust: retain pointer mut-ness in `container_of!`")
Signed-off-by: FUJITA Tomonori <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Acked-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
