[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b07f1bc6-c63e-4b97-95d6-c639186a89dd@kernel.org>
Date: Mon, 9 Feb 2026 13:29:22 +0100
From: "Christophe Leroy (CS GROUP)" <chleroy@...nel.org>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@...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, 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 2/3] rust: Add PowerPC support
Le 09/02/2026 à 13:02, Miguel Ojeda a écrit :
> On Mon, Feb 9, 2026 at 11:55 AM Mukesh Kumar Chaurasiya (IBM)
> <mkchauras@...il.com> wrote:
>>
>> These changes aren’t the only ones required to get the kernel to compile
>> and link on PowerPC
>
> Is this patch not complete, then? It is up to the PowerPC maintainers
> what they want to merge, of course, but I don't think we should add
> the line in `Documentation/` if it does not work yet.
As far as I understand the patch is complete, the problem is outside the
kernel, it is in the libcore provided by rust or the rust compiler.
That libcore seems to call __udivdi3() and __umoddi3() which are not
provided by the kernel. Instead if should call the functions do_div()
and friends provided by include/asm-generic/div64.h, or provide
__udivdi3() and __umoddi3() on its own.
Christophe
Powered by blists - more mailing lists