Re: [PATCH 1/3] rust: uaccess: generalize write_dma() to accept any Coherent<T>

From: Danilo Krummrich

Date: Fri Mar 27 2026 - 17:00:35 EST


On Wed Mar 25, 2026 at 1:39 AM CET, Danilo Krummrich wrote:
> 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.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Applied to drm-rust-next, thanks!