From patchwork Fri Feb 26 12:46:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102665 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp695972lbc; Fri, 26 Feb 2016 04:47:24 -0800 (PST) X-Received: by 10.66.63.104 with SMTP id f8mr1724666pas.109.1456490843465; Fri, 26 Feb 2016 04:47:23 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kv12si3479273pab.194.2016.02.26.04.47.23 for ; Fri, 26 Feb 2016 04:47:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751777AbcBZMrW (ORCPT ); Fri, 26 Feb 2016 07:47:22 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:57244 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbcBZMrV (ORCPT ); Fri, 26 Feb 2016 07:47:21 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0MAReI-1akrZQ01LG-00Bbs5; Fri, 26 Feb 2016 13:46:42 +0100 From: Arnd Bergmann To: Herbert Xu Cc: linux-arm-kernel@lists.infradead.org, Dmitry Kasatkin , linux-crypto@vger.kernel.org, David Howells , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] lib/mpi: avoid assembler warning Date: Fri, 26 Feb 2016 13:46:26 +0100 Message-Id: <1456490794-1034544-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:e6YE+2Pu1xXZcp9Dh1HqlorAtBHTJiFwnqtyLoNYRTByBpf32km a6k1TQBfxTcu9sgrli0omVQ1bDLzvecgmHaqA0QC6HuBqg/aulySD2UzAGs2C4jLDz/+TDG IIfaXoPtXMl97kjHQmHAh8e8RPnbxwVNRsSPyVAkdjCsKShOsbujdkWVSr+IMWNC7VrFfDj dQIU6claYp9p6DT02CHfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:PAUKSW9LSVw=:iatDNBgh9YbjYXpBwXZKai zrlzCn20rsgixxM8Vs/Kds94ZIN4vc47zRfbaAFXZgjUZX4/zGkm3E8SjUitFvtuhFBpL4bEL oX+IeCuWOWN7CM9WR6frerzLQeY+ujOaSSNrXGBiFg8rCtLSGldjGQPavojobc+iTwfG7H+Mg B3+PDhVPhjOLSmhUE5Up7CNiPgq9nslfxFVQCM7tKMNw7LP/WKMrAu9yyBjaggoZW7CoWAUtb gpHaFjLVidSujIhUovumzWxYFNePG5VRJo5Ruerno5a5aAfg2YkUv77MXHgBfmC50CH2gXEll Gzoa3pB8IBXj0F6uSH5z7Gk3ZZBl67MZPecOd6zasXJfLBA4xpVPOuXTvgzKmGPrDFChj4bER aeQ8BZ6Mxn/mS7jJ56a2sTCDm/Q75m6qW2uX6OUC13pZx+fEyzpgoZri6fdW2FWvCGnGYRhpt BfVpmHK2sq+/vn7Z35ZlYy3bzhKco17Yw9M8IhZxyddxxDYL3aMWx1Tnn1dD6YaK6Sa0eBq28 Ex/rR44rz0gnevOTHnsBrofKdkbHSIf4FfqEX3Izg52y8njFK4t+FDcV8lgV/6czX1qNmXSho 8mzPkFfWG2/mNW0aAhysUviB2un2ZRnHiuHw6mBzWCuxWTWcVGUPwUmadChSUX0RVRZIPh0ah lwAAM/I6maLMMwWQcAxI9WXgFkZybYtngJzMc0mibZ4Y9MPN3xBS4gUqm4Ys9caV/CVc= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org A wrapper around the umull assembly instruction might reuse the input register as an output, which is undefined on some ARM machines, as pointed out by this assembler warning: CC lib/mpi/generic_mpih-mul1.o /tmp/ccxJuxIy.s: Assembler messages: /tmp/ccxJuxIy.s:53: rdhi, rdlo and rm must all be different CC lib/mpi/generic_mpih-mul2.o /tmp/ccI0scAD.s: Assembler messages: /tmp/ccI0scAD.s:53: rdhi, rdlo and rm must all be different CC lib/mpi/generic_mpih-mul3.o /tmp/ccMvVQcp.s: Assembler messages: /tmp/ccMvVQcp.s:53: rdhi, rdlo and rm must all be different This changes the constraints to force different registers to be used as output. Signed-off-by: Arnd Bergmann --- lib/mpi/longlong.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index b90e255c2a68..93336502af08 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h @@ -216,7 +216,7 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype); __asm__ ("%@ Inlined umul_ppmm\n" \ "umull %r1, %r0, %r2, %r3" \ : "=&r" ((USItype)(xh)), \ - "=r" ((USItype)(xl)) \ + "=&r" ((USItype)(xl)) \ : "r" ((USItype)(a)), \ "r" ((USItype)(b)) \ : "r0", "r1")