Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3187890ybd; Mon, 24 Jun 2019 21:17:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXsXsl4wk9ptDgvjZ5WUtwq8DvG1B++fGeZ1zqv/WodPmyK3fXvGEoZrvp+/xMIL3kfF9y X-Received: by 2002:a63:18d:: with SMTP id 135mr24901610pgb.62.1561436266932; Mon, 24 Jun 2019 21:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436266; cv=none; d=google.com; s=arc-20160816; b=GRg6UlaLWeBhioTTxFOldNBagnWQn3mIrFnZPdmnc0eA+Rmqi0jwx2x1IuNzXQTgXz Y7VhwNZOJLEk+sLWlRNQNnqstNgkf70HfTM774Ynfp2voh2mJrEZ3nUSc9SIw0eeIBov 1PodqGt4hxYbWlEeIHfVbfg/GsrmmXHoaq8pGrX+yeOFA4ZZIJkc0CsYS1PPUx/aF3Oj 06UBCmatiG/O2TgNLZibvYqclaZ5k1LcrEOFWK2UjW8pwdyvFn0mGVUtRKgiobF7+peQ CdBsuwZUnw0BjosOHDVR88e6kh6zb+l9lmPaLDVOUMjayGbuS4t8ijN+kYgw2imWqODs HTYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FJ6vOhR8gsLZwxlKYHLPUZqtUgr4v4H6itA1sGGZ9Tk=; b=pNzr1vdjZ9agtFdZZ84Gol1aJ7Vxv4u8ENzPVDEL3ffyvWoZ7HvXRNZ9gLjotXwqbc LfWE/oCqlQy4rZnaQsNwp4hepeIVhNXhixYclkJibE3ZK1DfxlH8uDwWV+Tv3ppY2vKu WKhYXiZ4S8vfVYbRgEI9z0F73mP8R0Opj6GgJRo+Mdd76TOg8ch58H5tGBNR6LOAC8Os ds2XnMABCQeGXdiBH70uWAjh802Yah1saFozY2t8MpZdl6DC9c0ZhUBwUllc+OdkLh4L LOtR3v3eXrQe1ZdDlPNApKIsUXepYfyffNxf96aznVTqC9WZMGgnpYSEvPddws6MNXbz CXWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=jdc1fzKw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si13588498pff.267.2019.06.24.21.17.31; Mon, 24 Jun 2019 21:17:46 -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=@jms.id.au header.s=google header.b=jdc1fzKw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbfFYEDR (ORCPT + 99 others); Tue, 25 Jun 2019 00:03:17 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36875 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfFYEDR (ORCPT ); Tue, 25 Jun 2019 00:03:17 -0400 Received: by mail-qk1-f194.google.com with SMTP id d15so11509127qkl.4 for ; Mon, 24 Jun 2019 21:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FJ6vOhR8gsLZwxlKYHLPUZqtUgr4v4H6itA1sGGZ9Tk=; b=jdc1fzKwSnLWCxjoK/F97iKoVCwjrKexFSC5W4HkRjgPKaJ9dZBAeQ3tmG+z5EKoDs Yf7/WkSSy8D6GBT2FmwhplNm3hw3wyF8WXw04XghQDosOssxWf3eT5SnJlZZSUndDteR KT32Ui2g3sSzbzw7/XjMv45VaJ4jCjG1vMdv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FJ6vOhR8gsLZwxlKYHLPUZqtUgr4v4H6itA1sGGZ9Tk=; b=bn/xwrf4IydIvOW9POWOddw1R2BjOCimZUzJvYEZvzmU4u+NwzCbRJ7wnYfK5+1UKO nh9AANOTC2CO8OdxyrFww2A80ZPdGDFbCDPqDra0CNo9MYxWqGRnVL8h/HPGE4+EERFA DIzTV2aRGhpHuI9ziGVNoqwWxloYH8FRHfqlbd+vKnznzkCs4pqd3+jPLuqugl5Q5sKI T39DzH9/ecluSU1JWSgsgHoj87jXPAIjI/VIRikkpmyXnIjTMTF8RhWK7dipDHwjtNAp X9r7fPp1hPW/PhOEsXYroCHDw5Wgt16bO/+l0lJyqJGbV2UY0pa7JkFR1rUbCVnMR8ER Tj2w== X-Gm-Message-State: APjAAAUM9Zzq0IRzAjs/cP2kDFD8glvgE1L96uNIisj0y/lgwj7tkGY2 Co6G5Lq2N1KAIhO8miWz15BqHftbc6RTIhj3Kk4= X-Received: by 2002:a37:a1d6:: with SMTP id k205mr105761153qke.171.1561435395958; Mon, 24 Jun 2019 21:03:15 -0700 (PDT) MIME-Version: 1.0 References: <20190621071342.17897-1-malat@debian.org> <20190621195555.20615-1-malat@debian.org> In-Reply-To: <20190621195555.20615-1-malat@debian.org> From: Joel Stanley Date: Tue, 25 Jun 2019 04:03:04 +0000 Message-ID: Subject: Re: [PATCH v2] lib/mpi: fix build with clang To: Mathieu Malaterre Cc: Michael Ellerman , Segher Boessenkool , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jun 2019 at 19:56, Mathieu Malaterre wrote: > > Remove superfluous casts on output operands to avoid warnings on the > following macros: > > * add_ssaaaa(sh, sl, ah, al, bh, bl) > * sub_ddmmss(sh, sl, ah, al, bh, bl) > * umul_ppmm(ph, pl, m0, m1) > > Special care has been taken to keep the diff as minimal as possible from > the original header file `longlong.h` from gcc, only importing the > minimal change to make the compilation with clang pass. > Suggested-by: Joel Stanley > Cc: Segher Boessenkool > Signed-off-by: Mathieu Malaterre > --- > v2: Instead of passing compat flag to clang to behave as gcc, remove the superfluous cast Thanks, I checked your patch against GCC's longlong.h and it looks good. Reviewed-by: Joel Stanley Cheers, Joel