Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3374332ybl; Sun, 11 Aug 2019 22:27:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7sOWEiPhYmsLd79y3cjeqFNymUmiilwjMRxaabePqDU65ZpGIPQ7n2z3vju/QXWky6QM9 X-Received: by 2002:a17:902:bf4c:: with SMTP id u12mr30025515pls.317.1565587673010; Sun, 11 Aug 2019 22:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565587673; cv=none; d=google.com; s=arc-20160816; b=n2RJTEuL2mu8LECu8Ea/PJQzLCxsC9zJdCW4SUKCwjXZaB8GbqSrRZoP4G7q7d9jI1 n+mGBPd1YkFc2wkY1TAa6v8pffFbHtX2XHzvEwVn9V1H9E57QYy07vYN1oBRxjS96JgO +KfqVaeiFsCOOxJK/o12rWYjEDmwENTKUzGkhA2eL7BvMM6HinZ5vKT42RH1yEGT0oY6 ZDRZxKGoCZPRD1D1BrwrrnOkzuD4m5SSe/hi1C/F1EzLaKukSFXD+xyL7bAvw0Abmgb7 vv3iJLc5PsAYQi2AkMkKFyve2KcHZX3axAE4fhM+cYE1lyTereMvyOLYch7VWBBC8C4i Gypw== 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=Zrtq/OcTTH2eTqgcPRB8HJQQ2tKzQ93zxFStLVLHmTY=; b=dJjMkzEdaCl8pOaitmXSIXw+mSrvG6rE50SL8cXjTlYI7WE3fnpxQmTcoo5oCEX/DQ aJAZA9YMab5kW9mMboCaEUE7o4eWbTNNdtokK+QuON/vTU8ZpPeT7Vo+zuSc+vNXefrR 9S9GTjeBbYXuQwjkvdrZWYJccMYJgxYQ0DkMw+iUd0zz7rnzMZHsbBsvhTxhQy61y/Op JvnZVzSWk4gjpFB4wEKeOn/GJiYsAyDusFuE9vzHefxhFYmZw/yFVd7Ky058eFvshyDP U/ufFA8rfdizoGqWh4YNF+o3y0mwJ9tTGykoxtHRNsXiXLZXav30DHwUI0apR8wylRI6 kT0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bsytUiVN; 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 p9si7839802pjp.4.2019.08.11.22.27.38; Sun, 11 Aug 2019 22:27:52 -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=bsytUiVN; 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 S1726920AbfHLFZO (ORCPT + 99 others); Mon, 12 Aug 2019 01:25:14 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:32965 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfHLFZO (ORCPT ); Mon, 12 Aug 2019 01:25:14 -0400 Received: by mail-wm1-f68.google.com with SMTP id p77so10081075wme.0; Sun, 11 Aug 2019 22:25:12 -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=Zrtq/OcTTH2eTqgcPRB8HJQQ2tKzQ93zxFStLVLHmTY=; b=bsytUiVNjuHfD5451Er/N7M+xKh8KR2IcZNAGYyPGJz8AtbPvL3Nz2rw6SJe6ZiXZ6 02alEgiz+lIk/zsGqgoKFoFZ7zAflyiSqoKUzRlPuCOpnnOPH0ftNoUoab3oVv9jDyqS O8kko4MJad/MEqV75UvKTcPeH5QOQJRUiA4lCQxCZH+f24f8YH5tfW9CK+sEPDL7WI4G g9BYc1vupND+NncvDXBGbSiKDdlpB3CGM2TWL+YOWcLv7C3btbkNkNskSMsOq1SzgfmO 1ZBXFN4VDqkA7bDfPl/G3TcK6NH7N5S7RVqiJ45gpyJv5DqocL1ng77PcrvQVKAmtT/d hkPQ== 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=Zrtq/OcTTH2eTqgcPRB8HJQQ2tKzQ93zxFStLVLHmTY=; b=C6XqpTn9PxOCjdW7R2J28oJ+74hbuhVU2hwT2Z8j3PZVF6KajgMXoaU0nhlz5mBHMD FhmW4xhOh9kEiAo8GlrlwR6pNJm+jo70jDGdnh37xtXIun6tBb7F3hkWhb5tt1vyauGe oRr/hHGKAleLR1pDdOEOC5T242wWD0iNTOMa8n48AfpVmzlCw+PEd9ABh3a5F+qzTRZ6 thehgqk/FFx3rbsBQUAM/noK6W3eo4WzdGDfsX3VHlpq3DzYDxNObYG4IZYxu82iAgKm iMVml0RwysXnJQ35unppDkWdtD8h6Ib/HuSl2gVd7PNbEO+YQtKZLvDG7zO+r4+6wM75 Kp2g== X-Gm-Message-State: APjAAAV19aN9FFcyr3YFuzkm8/mn4Ig2QtAqKIRebqzJWFaG+EzpLfxp eTF7/3/FdfDulhpjE8usKYo= X-Received: by 2002:a7b:cd09:: with SMTP id f9mr24341011wmj.64.1565587512105; Sun, 11 Aug 2019 22:25:12 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id 74sm3588349wma.15.2019.08.11.22.25.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 22:25:11 -0700 (PDT) Date: Sun, 11 Aug 2019 22:25:10 -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, Werner Koch , Andrew Morton , Herbert Xu Subject: Re: [PATCH 4/5] lib/mpi: Fix for building for MIPS64 with Clang Message-ID: <20190812052510.GB47342@archlinux-threadripper> References: <20190812033120.43013-1-natechancellor@gmail.com> <20190812033120.43013-5-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812033120.43013-5-natechancellor@gmail.com> 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 08:31:19PM -0700, Nathan Chancellor wrote: > From: Werner Koch > > * mpi/longlong.h [MIPS64][__clang__]: Use the C version like we > already do for 32 bit MIPS > > clang errors: > > 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/e7ae0ae243c8978a67c802169183187d88557be8 > Signed-off-by: Werner Koch > [nc: Added build error and tags to commit message > Modified subject line > Removed GnuPG-bug-id > 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 8a1507fc94dd..5636e6a09f7a 100644 > --- a/lib/mpi/longlong.h > +++ b/lib/mpi/longlong.h > @@ -688,7 +688,8 @@ do { \ > : "d" ((UDItype)(u)), \ > "d" ((UDItype)(v))); \ > } while (0) > -#elif (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4) > +#elif defined(__clang__) || (__GNUC__ >= 5) || (__GNUC__ == 4 && \ > + __GNUC_MINOR__ >= 4) > #define umul_ppmm(w1, w0, u, v) \ > do { \ > typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ > -- > 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