Re: [PATCH 2/3] rust: dma: convert the read/write macros to return Result
From: Miguel Ojeda
Date: Wed Mar 26 2025 - 16:49:50 EST
On Wed, Mar 26, 2025 at 9:13 PM Abdiel Janulgue
<abdiel.janulgue@xxxxxxxxx> wrote:
>
> As suggested by Andreas Hindborg, we could do better here by
> having the macros return `Result`, so that we don't have to wrap
> these calls in a closure for validation which is confusing.
>
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@xxxxxxxxx>
I would suggest:
Suggested-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Link: https://lore.kernel.org/rust-for-linux/87h63qhz4q.fsf@xxxxxxxxxx/
Maybe also consider if Co-developed-by etc. makes sense since he
provided the diff.
Thanks!
Cheers,
Miguel