summaryrefslogtreecommitdiff
path: root/kernel/bpf/syscall.c
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2024-09-13 22:29:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-27 04:34:15 -0800
commitfb5fecfa6623ccd07513a83dac307aad07c9e525 (patch)
tree01d0f7f9edfb31d8026f2ebc2fe5ae6448d7f9f4 /kernel/bpf/syscall.c
parent7efbbb5407e7fa835832452d39db7a0d0d170e7b (diff)
rust: cleanup unnecessary casts
commit 9b98be76855f14bd5180b59c1ac646b5add98f33 upstream. With `long` mapped to `isize`, `size_t`/`__kernel_size_t` mapped to `usize` and `char` mapped to `u8`, many of the existing casts are no longer necessary. Signed-off-by: Gary Guo <gary@garyguo.net> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20240913213041.395655-6-gary@garyguo.net [ Moved `uaccess` changes to the previous commit, since they were irrefutable patterns that Rust >= 1.82.0 warns about. Removed a couple casts that now use `c""` literals. Rebased on top of `rust-next`. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions