From nobody Thu Apr 2 09:18:57 2026 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 219442DF68; Mon, 30 Mar 2026 01:54:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774835653; cv=none; b=kqtwpkr537mUWTjSbB0ObPHhYtrPCf1vhYSrFBVZP0Y2T2/Zr++QwCFEXyFjVSLFM5SVbmXEqCQzuSwfHv9vUF7MU4usTQTQlE8tzOBQ2Lh+F16CxHoLWwfRMtFFf9nk+BCIZHZj2MuXJYnAOd336glrwVYGAWfPyi0u3USWvjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774835653; c=relaxed/simple; bh=+OC1mgcMNX5wOoCcMPVK20fT0wrltlA2oEpQt/81xZU=; h=Date:From:To:cc:Subject:Message-ID:MIME-Version:Content-Type; b=UI7SakyWyYVaRiCx5uBQG672kp92sk3uF4mIKDYksZDn15oX9pcDGYe7OFmcjFqut1sLztV+zlDv0MevxZ/bROMJxyGXrgiRCoCd00B0fqVyP3DKL3JgkdXNAhBH0+JLugnNl5O0WvmA7hv3cSDilSgKnKiu+GXlR+5T4I7pJcY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 92F1292009C; Mon, 30 Mar 2026 03:54:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 8930F92009B; Mon, 30 Mar 2026 02:54:09 +0100 (BST) Date: Mon, 30 Mar 2026 02:54:09 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Fix the GCC version check for `__multi3' workaround Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It was only GCC 10 that fixed a MIPS64r6 code generation issue with a=20 `__multi3' libcall inefficiently produced to perform 64-bit widening=20 multiplication while suitable machine instructions exist to do such a=20 calculation. The fix went in with GCC commit 48b2123f6336 ("re PR=20 target/82981 (unnecessary __multi3 call for mips64r6 linux kernel)"). Adjust our code accordingly, removing build failures such as: mips64-linux-ld: lib/math/div64.o: in function `mul_u64_add_u64_div_u64': div64.c:(.text+0x84): undefined reference to `__multi3' with the GCC versions affected. Fixes: ebabcf17bcd7 ("MIPS: Implement __multi3 for GCC7 MIPS64r6 builds") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202601140146.hMLODc6v-lkp@int= el.com/ Signed-off-by: Maciej W. Rozycki Cc: stable@vger.kernel.org # v4.15+ Reviewed-by: David Laight