Re: [PATCH 8/9] rust: error: expose EPROTO

From: Miguel Ojeda

Date: Wed Aug 26 2026 - 12:36:12 EST


On Wed, Aug 26, 2026 at 6:29 PM Mike Lothian <mike@xxxxxxxxxxxxxx> wrote:
>
> Add the named protocol-error constant so Rust protocol drivers
> can return the same specific errno as their C counterparts without
> constructing it from a raw integer.
>
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Mike Lothian <mike@xxxxxxxxxxxxxx>

This is already in mainline, please see commit b93fb6e76ec1 ("rust:
error: add remaining error codes").

Cheers,
Miguel