public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Thorsten Leemhuis <linux@leemhuis•info>
To: Alice Ryhl <aliceryhl@google•com>, Danilo Krummrich <dakr@kernel•org>
Cc: "Lorenzo Stoakes" <lorenzo.stoakes@oracle•com>,
	"Liam R. Howlett" <Liam.Howlett@oracle•com>,
	"Matthew Wilcox" <willy@infradead•org>,
	"Tamir Duberstein" <tamird@gmail•com>,
	"Andreas Hindborg" <a.hindborg@kernel•org>,
	"Miguel Ojeda" <ojeda@kernel•org>,
	"Boqun Feng" <boqun.feng@gmail•com>,
	"Gary Guo" <gary@garyguo•net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail•com>,
	"Benno Lossin" <lossin@kernel•org>,
	"Trevor Gross" <tmgross@umich•edu>,
	linux-mm@kvack•org, rust-for-linux@vger•kernel.org,
	linux-kernel@vger•kernel.org,
	"Stephen Rothwell" <sfr@canb•auug.org.au>,
	"Linux Next Mailing List" <linux-next@vger•kernel.org>,
	"Andrew Morton" <akpm@linux-foundation•org>
Subject: Re: [PATCH v2 0/2] Take ARCH_KMALLOC_MINALIGN into account for build-time XArray check
Date: Mon, 18 Aug 2025 13:09:26 +0200	[thread overview]
Message-ID: <8aa05f08-ef6e-4dfe-9453-beaab7b3cb98@leemhuis.info> (raw)
In-Reply-To: <DC38NDRET9NB.31UDI8FHB7WAY@kernel.org>

On 15.08.25 21:12, Danilo Krummrich wrote:
> On Mon Aug 11, 2025 at 2:31 PM CEST, Alice Ryhl wrote:
>> Alice Ryhl (2):
>>       rust: alloc: specify the minimum alignment of each allocator
> 
>     [ Add helper for ARCH_KMALLOC_MINALIGN; remove cast to usize. - Danilo ]
> 
>>       rust: alloc: take the allocator into account for FOREIGN_ALIGN
> 
> Applied to alloc-next, thanks!

I had a build error with my daily linux-next builds for Fedora (using
the Fedora rawhide config) on arm64 (ppc64le and x86_64 worked fine).
From a quick look it seems it might be due to this series, which 
turned up in -next today:

"""
error[E0428]: the name `ARCH_KMALLOC_MINALIGN` is defined multiple times
      --> /builddir/build/BUILD/kernel-6.17.0-build/kernel-next-20250818/linux-6.17.0-0.0.next.20250818.423.vanilla.fc44.aarch64/rust/bindings/bindings_generated.rs:134545:1
       |
9622   | pub const ARCH_KMALLOC_MINALIGN: u32 = 8;
       | ----------------------------------------- previous definition of the value `ARCH_KMALLOC_MINALIGN` here
...
134545 | pub const ARCH_KMALLOC_MINALIGN: usize = 8;
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ARCH_KMALLOC_MINALIGN` redefined here
       |
       = note: `ARCH_KMALLOC_MINALIGN` must be defined only once in the value namespace of this module

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0428`.
make[2]: *** [rust/Makefile:539: rust/bindings.o] Error 1
make[1]: *** [/builddir/build/BUILD/kernel-6.17.0-build/kernel-next-20250818/linux-6.17.0-0.0.next.20250818.423.vanilla.fc44.aarch64/Makefile:1294: prepare] Error 2
make: *** [Makefile:256: __sub-make] Error 2
"""

Full log:
https://download.copr.fedorainfracloud.org/results/@kernel-vanilla/next/fedora-rawhide-aarch64/09439461-next-next-all/builder-live.log.gz

Ciao, Thorsten

       reply	other threads:[~2025-08-18 11:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250811-align-min-allocator-v2-0-3386cc94f4fc@google.com>
     [not found] ` <DC38NDRET9NB.31UDI8FHB7WAY@kernel.org>
2025-08-18 11:09   ` Thorsten Leemhuis [this message]
2025-08-18 11:18     ` [PATCH v2 0/2] Take ARCH_KMALLOC_MINALIGN into account for build-time XArray check Miguel Ojeda
2025-08-18 12:03     ` Danilo Krummrich

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=8aa05f08-ef6e-4dfe-9453-beaab7b3cb98@leemhuis.info \
    --to=linux@leemhuis$(echo .)info \
    --cc=Liam.Howlett@oracle$(echo .)com \
    --cc=a.hindborg@kernel$(echo .)org \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=aliceryhl@google$(echo .)com \
    --cc=bjorn3_gh@protonmail$(echo .)com \
    --cc=boqun.feng@gmail$(echo .)com \
    --cc=dakr@kernel$(echo .)org \
    --cc=gary@garyguo$(echo .)net \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mm@kvack$(echo .)org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=lorenzo.stoakes@oracle$(echo .)com \
    --cc=lossin@kernel$(echo .)org \
    --cc=ojeda@kernel$(echo .)org \
    --cc=rust-for-linux@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    --cc=tamird@gmail$(echo .)com \
    --cc=tmgross@umich$(echo .)edu \
    --cc=willy@infradead$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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