Re: [PATCH] rust: io: move MIN_SIZE and io_addr_assert to IoKnownSize

From: Danilo Krummrich

Date: Sun Feb 01 2026 - 16:34:05 EST


On Fri Jan 30, 2026 at 2:32 PM CET, Alexandre Courbot wrote:
> `MIN_SIZE` are `io_addr_assert` only ever used for IO types which
> implement `IoKnownSize` and do not make sense for types that don't.
>
> It looks like they should have been there since the beginning, so move
> them while the code is still fresh.
>
> Also update `IoKnownSize`'s documentation since it is not just a marker
> trait anymore.
>
> Fixes: 121d87b28e1d ("rust: io: separate generic I/O helpers from MMIO implementation")
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

[ Fix typo in commit message. - Danilo ]

Applied to driver-core-testing, thanks!