diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2025-06-06 11:05:05 +0900 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-06-10 20:11:36 +0200 |
commit | 5b2d595efbfc9c46823bdb9ef11e1f9fa46adf9d (patch) | |
tree | 57ca05c694fe05f340071dfa5b2eaaccade5aa04 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
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 <fujita.tomonori@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250606020505.3186533-1-fujita.tomonori@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions