Re: [PATCH 02/13] rust: error: move unsafe block into function call

From: Valentin Obst
Date: Thu Jan 18 2024 - 03:56:33 EST


> If you're up for it, that safety comment could also be improved.
> Something like
>
> // SAFETY: `pdev` points to a valid platform device

Thanks, will include something like that in a v2.

Just to make sure I got it correctly: Index is bounds checked [1] and
thus there is no need to include it in the comment. Please object if
that is wrong.

[1]: https://elixir.bootlin.com/linux/v6.7/source/drivers/base/platform.c#L63