[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJ-ks9mxUUQvbQp+cPx-5Vvs4gZQEkS=5NC9veuQ-qU9ZJn0JA@mail.gmail.com>
Date: Thu, 27 Feb 2025 06:34:26 -0500
From: Tamir Duberstein <tamird@...il.com>
To: Gary Guo <gary@...yguo.net>
Cc: Danilo Krummrich <dakr@...nel.org>, Miguel Ojeda <ojeda@...nel.org>, DJ Delorie <dj@...hat.com>,
Eric Blake <eblake@...hat.com>, Paul Eggert <eggert@...ucla.edu>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>, rust-for-linux@...r.kernel.org,
linux-man@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v7] rust: alloc: satisfy POSIX alignment requirement
On Thu, Feb 13, 2025 at 9:24 AM Gary Guo <gary@...yguo.net> wrote:
>
> On Thu, 13 Feb 2025 06:34:18 -0500
> Tamir Duberstein <tamird@...il.com> wrote:
>
> > ISO C's `aligned_alloc` is partially implementation-defined; on some
> > systems it inherits stricter requirements from POSIX's `posix_memalign`.
> >
> > This causes the call added in commit dd09538fb409 ("rust: alloc:
> > implement `Cmalloc` in module allocator_test") to fail on macOS because
> > it doesn't meet the requirements of `posix_memalign`.
> >
> > Adjust the call to meet the POSIX requirement and add a comment. This
> > fixes failures in `make rusttest` on macOS.
> >
> > Acked-by: Danilo Krummrich <dakr@...nel.org>
> > Fixes: dd09538fb409 ("rust: alloc: implement `Cmalloc` in module allocator_test")
> > Signed-off-by: Tamir Duberstein <tamird@...il.com>
>
> Reviewed-by: Gary Guo <gary@...yguo.net>
Thanks for the reviews! Gentle ping: are more reviews required?
Powered by blists - more mailing lists