From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Alexandre Courbot" <acourbot@nvidia.com>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <rust-for-linux@vger.kernel.org>,
<nouveau@lists.freedesktop.org>
Subject: Re: [PATCH v4 0/2] rust: add `Alignment` type
Date: Mon, 08 Sep 2025 20:55:15 +0900 [thread overview]
Message-ID: <DCNEDWOWA73X.W2YXXSB09J2G@nvidia.com> (raw)
In-Reply-To: <20250821-num-v4-0-1f3a425d7244@nvidia.com>
On Thu Aug 21, 2025 at 9:42 PM JST, Alexandre Courbot wrote:
> Basically a resend of the previous version, plus fixes to build with the
> MSRV (1.78).
>
> The first patch makes two additions:
>
> - Bring an equivalent of the nightly upstream `Alignment` type [2] with
> an identical public interface,
> - Add a new `Alignable` extension trait that provides a way to align
> values up or down according to an `Alignment`, and implement it on
> unsigned integer types.
>
> The second patch makes use of these in the Nova driver.
>
> [3] is recommended as a dependency, a small cleanup preventing an unwrap
> upon applying this series.
>
> [1] https://github.com/rust-lang/libs-team/issues/631
> [2] https://doc.rust-lang.org/std/ptr/struct.Alignment.html
> [3] https://lore.kernel.org/rust-for-linux/20250808-falcondma_256b-v1-1-15f911d89ffd@nvidia.com/
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Gentle ping for this feature, how are we feeling about it?
prev parent reply other threads:[~2025-09-08 11:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 12:42 [PATCH v4 0/2] rust: add `Alignment` type Alexandre Courbot
2025-08-21 12:42 ` [PATCH v4 1/2] " Alexandre Courbot
2025-08-22 7:58 ` Alice Ryhl
2025-09-08 12:02 ` Danilo Krummrich
2025-09-08 12:06 ` Alexandre Courbot
2025-09-08 12:18 ` Miguel Ojeda
2025-09-08 12:36 ` Alexandre Courbot
2025-08-21 12:42 ` [PATCH v4 2/2] gpu: nova-core: use Alignment for alignment-related operations Alexandre Courbot
2025-09-08 11:55 ` Alexandre Courbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DCNEDWOWA73X.W2YXXSB09J2G@nvidia.com \
--to=acourbot@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=nouveau@lists.freedesktop.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).