aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorTamir Duberstein <[email protected]>2025-04-09 14:43:16 +0000
committerMiguel Ojeda <[email protected]>2025-05-28 16:54:09 +0000
commit74d6a606c2b39fd830d2d7a6363bc5688b4e4b56 (patch)
tree17d0b1b48e8caa5bedb2c47dfa34b3dad628ba40 /lib/crypto/mpi/mpi-cmp.c
parentDocumentation: rust: testing: add docs on the new KUnit `#[test]` tests (diff)
downloadkernel-74d6a606c2b39fd830d2d7a6363bc5688b4e4b56.tar.gz
kernel-74d6a606c2b39fd830d2d7a6363bc5688b4e4b56.zip
rust: retain pointer mut-ness in `container_of!`
Avoid casting the input pointer to `*const _`, allowing the output pointer to be `*mut` if the input is `*mut`. This allows a number of `*const` to `*mut` conversions to be removed at the cost of slightly worse ergonomics when the macro is used with a reference rather than a pointer; the only example of this was in the macro's own doctest. Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Tamir Duberstein <[email protected]> Reviewed-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-cmp.c')
0 files changed, 0 insertions, 0 deletions