From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from luna.linkmauve.fr (luna.linkmauve.fr [82.65.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC00F341649; Tue, 10 Feb 2026 09:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.65.109.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770716542; cv=none; b=Ye9liGKTITTCMLx6LeXlrPKe31G4dQm0p1XxEc7GVxwNiA+ugWorO43anMCuqw3w663gEbR/Iz5H67WW/tVdqydbr8irRZzdveYeoHk1UA2hnJzn1WKUK2C3yX8FwhGtzY1An1s9rMWaUBzitScsBJo1SS/z2a/TyJoH/56NXJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770716542; c=relaxed/simple; bh=/T8KUPbygjbky3/+PtIfPTmcPBNJYsI/O2945eSuSzo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=om2avrVVZ9Qg2ReUaJEMv1P3e5ZoeirDPorP5zWfL1jkcqLw8x8N90K6z/NwhIDmaMh8g3Pb7X3ixLKpRrdaN6Ieje8nZe1VWX5EAMqu71mgsWnZCncmkLFYGGJhFo5JVYAi3AtcrGZW+S8wPchhxw6xwBUZ5K5nUlRggOp+y8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr; spf=pass smtp.mailfrom=linkmauve.fr; arc=none smtp.client-ip=82.65.109.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linkmauve.fr Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 7ACCEF43B79; Tue, 10 Feb 2026 10:42:11 +0100 (CET) Date: Tue, 10 Feb 2026 10:42:11 +0100 From: Link Mauve To: Miguel Ojeda Cc: "Christophe Leroy (CS GROUP)" , "Mukesh Kumar Chaurasiya (IBM)" , linkmauve@linkmauve.fr, ojeda@kernel.org, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, corbet@lwn.net, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, peterz@infradead.org, jpoimboe@kernel.org, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH V4 2/3] rust: Add PowerPC support Message-ID: References: <20260209105456.1551677-1-mkchauras@gmail.com> <20260209105456.1551677-3-mkchauras@gmail.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Jabber-ID: linkmauve@linkmauve.fr Hi, On Mon, Feb 09, 2026 at 01:48:01PM +0100, Miguel Ojeda wrote: > On Mon, Feb 9, 2026 at 1:29 PM Christophe Leroy (CS GROUP) > wrote: > > > > 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. > > Yeah, but what I mean is, should we add this if it doesn't link, > especially without a note or comment of some kind? (Perhaps to your > tracking issue in GitHub?) > > i.e. if I understand correctly, you prefer to not add the panicking > intrinsics to `rust/compiler_builtins.rs`, which I agree isn't ideal. > By the way, it would be nice if IBM could join one of the meetings > with have with upstream Rust to raise this topic again with them. I’m just an unemployed contributor, with no ties to any of that but sheer interest, would it be ok for me to join that call as well? I am interested in resolving that issue in core, only three types have that issue and only in their formatting code so far. > > In any case, it is up to you, of course. My only concern on the Rust > bits is on the docs side, the rest looks fine. > > Thanks! > > Cheers, > Miguel > -- Link Mauve