summaryrefslogtreecommitdiff
path: root/rust/kernel/seq_file.rs
diff options
context:
space:
mode:
authorMartin KaFai Lau <martin.lau@kernel.org>2025-08-11 16:15:41 -0700
committerMartin KaFai Lau <martin.lau@kernel.org>2025-08-12 12:14:02 -0700
commit9e293d47bfb9e812196670f2deeefc8b9d0226e4 (patch)
treea5f74c41abbd25749bf795f52e4e06c39ab7d102 /rust/kernel/seq_file.rs
parentfa479132845e94b60068fad01c2a9979b3efe2dc (diff)
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Cross merge bpf/master after 6.17-rc1. No conflict. Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'rust/kernel/seq_file.rs')
-rw-r--r--rust/kernel/seq_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/seq_file.rs b/rust/kernel/seq_file.rs
index 7a9403eb6e5b..8f199b1a3bb1 100644
--- a/rust/kernel/seq_file.rs
+++ b/rust/kernel/seq_file.rs
@@ -37,7 +37,7 @@ impl SeqFile {
bindings::seq_printf(
self.inner.get(),
c_str!("%pA").as_char_ptr(),
- &args as *const _ as *const crate::ffi::c_void,
+ core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(),
);
}
}