[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aYrCFCg2yEpCMPS9@li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com>
Date: Tue, 10 Feb 2026 10:59:53 +0530
From: Mukesh Kumar Chaurasiya <mkchauras@...il.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: linkmauve@...kmauve.fr, ojeda@...nel.org, boqun.feng@...il.com,
gary@...yguo.net, bjorn3_gh@...tonmail.com, lossin@...nel.org,
a.hindborg@...nel.org, aliceryhl@...gle.com, tmgross@...ch.edu, dakr@...nel.org,
corbet@....net, maddy@...ux.ibm.com, mpe@...erman.id.au, npiggin@...il.com,
chleroy@...nel.org, peterz@...radead.org, jpoimboe@...nel.org, jbaron@...mai.com,
rostedt@...dmis.org, ardb@...nel.org, rust-for-linux@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH V4 3/3] powerpc: Enable Rust for ppc64le
On Mon, Feb 09, 2026 at 12:52:26PM +0100, Miguel Ojeda wrote:
> On Mon, Feb 9, 2026 at 11:55 AM Mukesh Kumar Chaurasiya (IBM)
> <mkchauras@...il.com> wrote:
> >
> > diff --git a/rust/Makefile b/rust/Makefile
> > index ae22f2c5f0b3..14febe9c7643 100644
> > --- a/rust/Makefile
> > +++ b/rust/Makefile
> > @@ -392,7 +392,15 @@ BINDGEN_TARGET_x86 := x86_64-linux-gnu
> > BINDGEN_TARGET_arm64 := aarch64-linux-gnu
> > BINDGEN_TARGET_arm := arm-linux-gnueabi
> > BINDGEN_TARGET_loongarch := loongarch64-linux-gnusf
> > +
> > +ifdef CONFIG_PPC64
> > +ifdef CONFIG_CPU_LITTLE_ENDIAN
> > +BINDGEN_TARGET_powerpc := powerpc64le-linux-gnu
> > +endif
> > +else
> > BINDGEN_TARGET_powerpc := powerpc-linux-gnu
> > +endif
> > +
> > BINDGEN_TARGET_um := $(BINDGEN_TARGET_$(SUBARCH))
> > BINDGEN_TARGET := $(BINDGEN_TARGET_$(SRCARCH))
>
> This looks reasonable.
>
> My only nit is that we could trigger an error in the nested if since
> you wrote the if already. Otherwise, we could remove the nested one
> until ppc64 is supported, or am I missing something?
>
I will remove the nested if till we have support for the ppc64 big
endian.
Regards,
Mukesh
> Either way, for the Rust bits if powerpc maintainers are taking this:
>
> Acked-by: Miguel Ojeda <ojeda@...nel.org>
>
> Thanks!
>
> Cheers,
> Miguel
Powered by blists - more mailing lists