[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240118081043.20703-1-kernel@valentinobst.de>
Date: Thu, 18 Jan 2024 09:10:43 +0100
From: Valentin Obst <kernel@...entinobst.de>
To: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Trevor Gross <tmgross@...ch.edu>
Cc: Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...sung.com>,
Alice Ryhl <aliceryhl@...gle.com>,
rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Valentin Obst <kernel@...entinobst.de>
Subject: Re: [PATCH 02/13] rust: error: move unsafe block into function call
> 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
Powered by blists - more mailing lists