Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4036537ybd; Tue, 25 Jun 2019 12:53:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQKFjGy4xCmJeWd/WKNQ9M3QlgRY3yxmNqmRdz+MRWNKdvCD66p/Zrf7q3eFo3c7VjTc3o X-Received: by 2002:a63:145c:: with SMTP id 28mr55525pgu.245.1561492435954; Tue, 25 Jun 2019 12:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492435; cv=none; d=google.com; s=arc-20160816; b=yROUcUIM3JQV1JBDq41B2a+JGsAwVbxAPFpd7YC9qewVfNOWx6ah5Is4ULfgRgzUN+ tomt9GhE62bs3e9av551AQbFg4fMm7h5TGx8cFChFHLVhynhrI6LOeHWXL7Vy1zsfnE7 sS+RZSpLCOmSVTlMvjUmCsL57d9JS3mSRl0zi8RC+7DXNuklfASETg7Je8+Y4x3cnclV 4Mrz13B5uZEYFtTRNIJ1zbkPZmF9HFv5oIyn9dr5sJ3HnX/xKs0o/hWc2rcR91dTwr7M BCfrsp7szM2UeqX8I8kcM5oPwqt+WIRVgy85kwGeVWHbKO6lrpoH1Uy9v32H62vcs0iH 6WzQ== 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; bh=J1BFHhCJdXmoNPjv1Ch9T2p4z4emqfBUfvxszEQZOYA=; b=SYTAEw+QJFsGeNxOMj3TWa+n0vnGJUD0eH/1vKEOEvNPSlLAKUkyWGw+fD23/BBSuz l0LaUE4VuBq81j5ZKrvCMCK9eIL+S/Ss36uIgC1Qk623OH0U1eSplKjKH27SsZBAXUNZ hIgIkYfqmFIM6CaKcOvuJugVPmtdGZBSsJzZrlabaUBKHOMjSrkQc1s4S1f81P1Gj4dz RdV18sHzYOArsIdIhiHs1xnEU4uSVCVuDl67JfuzPa8v2Z+uGjbDowgqCs6O7xmqQPJI LxCLzRCIeVqc8lma9JFhOC3ab2SE/yb1t1wkj0oAUc7pL23uUxl6rFF1z+r6SW+0Ye5u JRAg== ARC-Authentication-Results: i=1; mx.google.com; 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 t14si11650208pfq.88.2019.06.25.12.53.40; Tue, 25 Jun 2019 12:53:55 -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; 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 S1732782AbfFYSQC (ORCPT + 99 others); Tue, 25 Jun 2019 14:16:02 -0400 Received: from gate.crashing.org ([63.228.1.57]:45226 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729748AbfFYSQC (ORCPT ); Tue, 25 Jun 2019 14:16:02 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x5PIFp1g019975; Tue, 25 Jun 2019 13:15:51 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x5PIFnSa019974; Tue, 25 Jun 2019 13:15:49 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 25 Jun 2019 13:15:49 -0500 From: Segher Boessenkool To: Mathieu Malaterre Cc: Michael Ellerman , Joel Stanley , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] lib/mpi: fix build with clang Message-ID: <20190625181549.GK7313@gate.crashing.org> References: <20190621071342.17897-1-malat@debian.org> <20190621195555.20615-1-malat@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621195555.20615-1-malat@debian.org> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On Fri, Jun 21, 2019 at 09:55:54PM +0200, 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) The patch is fine of course, but you might want to look at not using these asm macros at all: GCC can handle multi-word arithmetic just fine by itself, probably better than these macros do even. Segher