From: "Danilo Krummrich" <dakr@kernel•org>
To: "Thorsten Leemhuis" <linux@leemhuis•info>
Cc: "Alice Ryhl" <aliceryhl@google•com>,
"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 14:03:05 +0200 [thread overview]
Message-ID: <DC5JEGJSBBCP.38DNGTBOVH9OB@kernel.org> (raw)
In-Reply-To: <8aa05f08-ef6e-4dfe-9453-beaab7b3cb98@leemhuis.info>
On Mon Aug 18, 2025 at 1:09 PM CEST, Thorsten Leemhuis wrote:
> 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
Thanks for reporting, the diff below should fix it, I'll send a patch soon.
diff --git a/rust/bindgen_parameters b/rust/bindgen_parameters
index 0f96af8b9a7f..02b371b98b39 100644
--- a/rust/bindgen_parameters
+++ b/rust/bindgen_parameters
@@ -34,3 +34,4 @@
# We use const helpers to aid bindgen, to avoid conflicts when constants are
# recognized, block generation of the non-helper constants.
--blocklist-item ARCH_SLAB_MINALIGN
+--blocklist-item ARCH_KMALLOC_MINALIGN
prev parent reply other threads:[~2025-08-18 12:03 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 ` [PATCH v2 0/2] Take ARCH_KMALLOC_MINALIGN into account for build-time XArray check Thorsten Leemhuis
2025-08-18 11:18 ` Miguel Ojeda
2025-08-18 12:03 ` Danilo Krummrich [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=DC5JEGJSBBCP.38DNGTBOVH9OB@kernel.org \
--to=dakr@kernel$(echo .)org \
--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=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=linux@leemhuis$(echo .)info \
--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