From nobody Thu Apr 2 14:14:22 2026 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48CC433A708; Sat, 28 Mar 2026 14:29:18 +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=1774708162; cv=none; b=ezrEBe2FCORgnAU4z5N0Fqr1QX3Ij5kE5Q5lH1uYEXzVaxbuTTCBnu5lDKJmCax1NX3u8fn2Tgu+uiqCIWxFIwmza1GOOwhB1CjIUCRwUKprkf2rVfZd5MUi9z/OwqNz7ySUaGFStyjcU2XjL8NaRhZH5TmMKV/2w0DWgP5e168= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774708162; c=relaxed/simple; bh=FDc1xFUAAjSXJmFK7t/u9KcSPaRNU03niKj21iCVjko=; h=Date:From:To:cc:Subject:Message-ID:MIME-Version:Content-Type; b=BWt+M6BlSctxG/C15fEFJgQ6deuFWtaTKd5Q/w3KAiD+lOkqsSIA4VtabQ8nLtXc6FKqUpX6ycHHmk5Z48mtQtjr2VqQRonF40snDQv6Ia4z7ZIKn4QJ2AQqbOUsdsHi7r67tHdujzRQHRVhXe+cHurvhp6DA+ekk//ft/XS1IQ= 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 E76D692009C; Sat, 28 Mar 2026 15:29:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E4D7392009B; Sat, 28 Mar 2026 14:29:10 +0000 (GMT) Date: Sat, 28 Mar 2026 14:29:10 +0000 (GMT) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: kernel: Remove $0 clobber from `mult_sh_align_mod' 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" Remove rubbish $0 clobber added to inline asm within `mult_sh_align_mod'=20 with the removal of support for GCC versions below 3.4 made with commit=20 57810ecb581a ("MIPS: Remove GCC_IMM_ASM & GCC_REG_ACCUM macros"). =20 Previously a macro was used that, depending on GCC version, expanded to=20 either `accum' or $0. Since the latter choice was only a placeholder to=20 keep the syntax consistent and the register referred is hardwired, there=20 is no point in having it here as it has no effect on code generation. =20 Signed-off-by: Maciej W. Rozycki --- arch/mips/kernel/r4k-bugs64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) linux-mips-cpu-bugs64-gcc-reg-accum-zero.diff Index: linux-macro/arch/mips/kernel/r4k-bugs64.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-macro.orig/arch/mips/kernel/r4k-bugs64.c +++ linux-macro/arch/mips/kernel/r4k-bugs64.c @@ -91,7 +91,7 @@ void mult_sh_align_mod(long *v1, long *v ".set pop" : "=3D&r" (lv1), "=3Dr" (lw) : "r" (m1), "r" (m2), "r" (s), "I" (0) - : "hi", "lo", "$0"); + : "hi", "lo"); /* We have to use single integers for m1 and m2 and a double * one for p to be sure the mulsidi3 gcc's RTL multiplication * instruction has the workaround applied. Older versions of