diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2026-03-25 01:39:15 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-03-27 21:48:09 +0100 |
| commit | 25fe63db0024da172457055532c96bef924a8c78 (patch) | |
| tree | dbea3753d89ba9543c66bdd960ccd6dc5656cd1d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 80df573af9ef3aa63e1bacb6e17d57a7cd69afe2 (diff) | |
rust: uaccess: generalize write_dma() to accept any Coherent<T>
Generalize write_dma() from &Coherent<[u8]> to &Coherent<T> where
T: KnownSize + AsBytes + ?Sized. The function body only uses as_ptr()
and size(), which work for any such T, so there is no reason to
restrict it to byte slices.
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Acked-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260325003921.3420-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
