Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3374304ybl; Sun, 11 Aug 2019 22:27:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYLKJEKrPmn0EFsiSfKBWOiRwzQbb46+tHy7T1ULwDUR6LvGyP5U+G8cKY+fFGMdpnWI1Q X-Received: by 2002:aa7:8d98:: with SMTP id i24mr34381378pfr.199.1565587671315; Sun, 11 Aug 2019 22:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565587671; cv=none; d=google.com; s=arc-20160816; b=HMz55zNNNRhju4oEx0jAxVUqT76zXrf0VAqJ/FyonqEirTUTanyjIn26pFXl0jdvLN L/oAuT7LhlGbq2QLFM6KYGXbwLwxbq1ojmMRq9qCOaLTunlvTDh9vwfTxJ7COEPgq8+h byEAjYGrU0XEy/WWQzAW5GQfsnrt2sgK7W02+qImT1qqb9d45RFnsdlb86kG4/hMcp4h qYPBW2NQHrJg4ZR1AKdF1r2O4KBg8EFEWeFlXezThqSSfrYTdIRKdokCYnl7G81ZUL93 Vycv3eAkoeK+OT/XgTsG6jv95ITFCfDkK2A9WQkNXuf6uCAkdFBaTBH7Jbp/mVC2VI1y j9EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OQM0ZOIQ1BSyIC7OgvYQ9aFeaUJwMYXx4azwY8i6euk=; b=knnxQP7pqmVypKO8zFt3BmxsTd9psVBFTFPTh6Ol0dx6d4xu/162e6DcVaTr/jG1QD P6HfVZZmiwVmZTgo3tN0dMYmPhoVR7ybud3sJHqDdVSgvQFACG25OqtL9nN1I5Ch9Hg7 z6wlsZqvt44ouiDjNMcjXJhTn2ZXy2p+iXnQ2W1Mtn00hUYTs2PPnfBJpRjwoLgh8gZI SC1GWHeO/l2oWNBB7Qiy3ttz6ulKF9HoMLoaIxCANbAmxaNfOjv+9dXL5son1C11mRw0 1c+ERoKHnW/T5nRZv3iHZiI/VSXMH3WQnTFuhc7hAV/DsXb3Dk2yjJUm11kPGDJkMIrW 0KTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f9XpAxW4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si60928984pla.80.2019.08.11.22.27.35; Sun, 11 Aug 2019 22:27:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f9XpAxW4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbfHLF05 (ORCPT + 99 others); Mon, 12 Aug 2019 01:26:57 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53054 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfHLF05 (ORCPT ); Mon, 12 Aug 2019 01:26:57 -0400 Received: by mail-wm1-f66.google.com with SMTP id s3so10969898wms.2; Sun, 11 Aug 2019 22:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OQM0ZOIQ1BSyIC7OgvYQ9aFeaUJwMYXx4azwY8i6euk=; b=f9XpAxW4go7mJBxdcpfPN1nOzK1cu4DC2K+1MIJP2DlOPV87LUoRcpOZG4/NSTHAJv JH76et6MF2U7smJ+N/yq3X4rYtsHUsepKD/+BcMSMde64ZTg8lA7PMKhfF9WT3yCs14e ETbsAuXcbZmHsVg4xrqwCeyjzbqRij6/S0JXWo0WHfavFLSdTcqoe4ShqTlbeLBK1GyG 2q4XHT9t/r8CeVpOMoBbKX87qEF3mkrK1A4Sy5BLTWkTo6f5ME6Mwq9GcqTOKP6Mc590 tb07MnbIn7o17BLvsZu5RTGWAvbG2nHXY+bChKIJiR15ZghgM2ZR9/CkG5wjJQDWEuAb VKXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OQM0ZOIQ1BSyIC7OgvYQ9aFeaUJwMYXx4azwY8i6euk=; b=tLlG8y2sqLVkai02Ju/uYJFu01ENFOljko4Xg703a2FVw/CpMjeVxmL/SK5m6VJrau b39k43bnCfilECUM9wEQJ8KgJPpxN77+7pRqnJU5JebUao6SUnf0CLb/JvoLKjOr9Ot5 E25iYJyMrlvbIB/KnFcTfHAapa1h1Hqq13CG5nNG71jP7jqzveST3ymdQ1U+aIhtqbhY lWkWob1ocKyl/Zgk+bw7gUHn4Yu5gMzJmd5Oy1pNIfCpXldsWxEWZDgng6iOWG5lnKLB XI8GLFzdWJdRk9YAIbPzml7bFpqjkgDV7r0U/y0aSMpdGT+JtaNDimjPVPJR5qvCvhVN 7JHQ== X-Gm-Message-State: APjAAAWHNEgtq0yoL5MYJ161E1b7PU83LezajD8RnanYCr1nb4tAgyJi wp/MhLuzetm68pRBCWAQGMw= X-Received: by 2002:a1c:6145:: with SMTP id v66mr24893650wmb.42.1565587615182; Sun, 11 Aug 2019 22:26:55 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id 39sm11003737wrc.45.2019.08.11.22.26.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 22:26:54 -0700 (PDT) Date: Sun, 11 Aug 2019 22:26:53 -0700 From: Nathan Chancellor To: Ralf Baechle , Paul Burton , James Hogan Cc: Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Vladimir Serbinenko , Jussi Kivilinna , Andrew Morton , Herbert Xu Subject: Re: [PATCH 3/5] lib/mpi: Fix for building for MIPS32 with Clang Message-ID: <20190812052653.GA47439@archlinux-threadripper> References: <20190812033120.43013-1-natechancellor@gmail.com> <20190812033120.43013-4-natechancellor@gmail.com> <20190812052355.GA47342@archlinux-threadripper> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812052355.GA47342@archlinux-threadripper> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 11, 2019 at 10:23:55PM -0700, Nathan Chancellor wrote: > On Sun, Aug 11, 2019 at 08:31:18PM -0700, Nathan Chancellor wrote: > > From: Vladimir Serbinenko > > > > clang doesn't recognise =l / =h assembly operand specifiers but apparently > > handles C version well. > > > > lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a > > inline asm context requiring an l-value: remove the cast or build with > > -fheinous-gnu-extensions > > umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); > > ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > lib/mpi/longlong.h:652:20: note: expanded from macro 'umul_ppmm' > > : "=l" ((USItype)(w0)), \ > > ~~~~~~~~~~^~~ > > lib/mpi/generic_mpih-mul1.c:37:3: error: invalid output constraint '=h' > > in asm > > umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); > > ^ > > lib/mpi/longlong.h:653:7: note: expanded from macro 'umul_ppmm' > > "=h" ((USItype)(w1)) \ > > ^ > > 2 errors generated. > > > > Fixes: 5ce3e312ec5c ("crypto: GnuPG based MPI lib - header files (part 2)") > > Link: https://github.com/ClangBuiltLinux/linux/issues/605 > > Link: https://github.com/gpg/libgcrypt/commit/1ecbd0bca31d462719a2a6590c1d03244e76ef89 > > Signed-off-by: Vladimir Serbinenko > > [jk: add changelog, rebase on libgcrypt repository, reformat changed > > line so it does not go over 80 characters] > > Signed-off-by: Jussi Kivilinna > > [nc: Added build error and tags to commit message > > Added Vladimir's signoff with his permission > > Adjusted Jussi's comment to wrap at 73 characters > > Modified commit subject to mirror MIPS64 commit > > Removed space between defined and (__clang__)] > > Signed-off-by: Nathan Chancellor > > --- > > lib/mpi/longlong.h | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h > > index 3bb6260d8f42..8a1507fc94dd 100644 > > --- a/lib/mpi/longlong.h > > +++ b/lib/mpi/longlong.h > > @@ -639,7 +639,8 @@ do { \ > > ************** MIPS ***************** > > ***************************************/ > > #if defined(__mips__) && W_TYPE_SIZE == 32 > > -#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4) > > +#if defined(__clang__) || (__GNUC__ >= 5) || (__GNUC__ == 4 && \ > > + __GNUC_MINOR__ >= 4) > > #define umul_ppmm(w1, w0, u, v) \ > > do { \ > > UDItype __ll = (UDItype)(u) * (v); \ > > -- > > 2.23.0.rc2 > > > > Hi Paul, > > I noticed you didn't pick up this patch with the other ones you > applied. I just wanted to make sure it wasn't because it was sent to > the wrong person. This set of files doesn't appear to have an owner in > MAINTAINERS, I guess based on git history either Andrew or Hubert (on > CC) pick up patches for this set of files? If I need to, I can resend > it to the proper people. > > Cheers, > Nathan Sigh, actually add Andrew and Herbert and get his name right, sorry :(