Re: [PATCH 1/2] rust: io: document const-offset requirement for infallible accessors
"Alexandre Courbot" <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux,dev.linux.lists.driver-core,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu Jul 16, 2026 at 7:25 AM PDT, Gary Guo wrote: > From: Gary Guo <[email protected]> > > Due to the usage of `build_assert!` for address validity checking, these > accessors want constant offsets. Non-constant offsets can work but it > depend on compiler optimization levels, so it should be avoided. > > Signed-off-by: Gary Guo <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> Do we want to say something similar for read/write?