Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp238418pxb; Sat, 11 Sep 2021 03:45:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3gm15UjtFDFKtxTctsz/R7dMVc4zHj9HC+QoHY9E0gr+3ns0gg//yoLz8dzXr5BYTIS3T X-Received: by 2002:a17:906:32c9:: with SMTP id k9mr2338832ejk.218.1631357148098; Sat, 11 Sep 2021 03:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631357148; cv=none; d=google.com; s=arc-20160816; b=fM96PkV9wOTcPOThkUpk8T/wUMcQsqLr4Wc7UeC5aoL5cEZgiBFXnKsLW42/T/ADoy 3TfLzmph47i9e3NkPNKFe5DHiN00h/oqrnP9M+IyS4PO12lZxQvC5kHudCptp+pbKgkt T12tnkKbtZjzVEo7sL9uXTzAeZ7EnMgFTeTjKAWLbaqkiTlLiryKrVWS5m4mNsPHXgny SfJ9cUrv6BHIFNgnEk8Jk+faWQHq65uaBKKkrvwKrcxlBTpuc+c2t4+oPQCSVXbxIJmA tAIrahufTXWNbe5mRKi8SQlTCx7YcEtC+aBxo1I5KdWnf/xOFvwlvSiD5yC+kwG1Xh/Q 0aHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=IAM6TXV6wXFq89B5Tg489wwFMphvmD5Og9aY6yFESQg=; b=KrrIF+PJe120EydD2v0b1+o8wmqYbCo1W/imtcab32trmIf+PNmrlOrQihPQB45Vy0 QuXzRywRHDS8Ow2JIZDmm7HIzbEp8YIH2snF3tbQdUxSNqyOiSTk3B4WHF2XMYIIckFT bczH2I+vbSwTw3iP+djccKfv6R26l2u1JBeafe3Jbn2Nqr9izxYDXbHlsid8Lx/t1jCn Pug08t7Mdpmku1XpCOm1702m1xQH+Vz/GZl9J87Zr7GwpTVkbjGmxHFub+5Rn7x1MXPx d0FFNPyvdSFpt81Zc++6FxBZA389VXL3HB2fBolu2UGQTkKc5ObtWMpd7NNZ3ngG5geY gxQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=R6ZXpzlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si1539983edj.177.2021.09.11.03.45.24; Sat, 11 Sep 2021 03:45:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=R6ZXpzlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235670AbhIKKpO (ORCPT + 99 others); Sat, 11 Sep 2021 06:45:14 -0400 Received: from ozlabs.org ([203.11.71.1]:49445 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235443AbhIKKpN (ORCPT ); Sat, 11 Sep 2021 06:45:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1631357040; bh=IAM6TXV6wXFq89B5Tg489wwFMphvmD5Og9aY6yFESQg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=R6ZXpzlbpiL9jKuN4WCfe1KuLWTgLxflTVJRzGiDwa0pTXkvhcPYgdcqb9H4N9qiG 8YEQ7ydw8LYh1/3D6ULsiYSP/DMc+YZTYTW+45tyjXHzu2lx4k0hSZmJm6MVkk3sYd pu1rcfjKjFOrZLYgRGg3z2cysyHY2x5M4m/FjY1tIGH7O1GkPxLsZCbPhk5UMMi/0n 1eKfoEKCNAg0wXJdTwH47G+1h/05x9gA7FiSr4kB5BZQ4IoTXYqsJMlid5dtVttVSf C/xR4iqL2YXJQ993AakossuahedxPa1CEg1CMLimvXL7ZQEYMVZEjeyIfdfcr0s6sz wOQDz+okAuIIg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4H68Vj4T5kz9sXk; Sat, 11 Sep 2021 20:43:57 +1000 (AEST) From: Michael Ellerman To: Nathan Chancellor , Nick Desaulniers , Andrew Morton Cc: Linus Torvalds , Rasmus Villemoes , Masahiro Yamada , Joe Perches , Arnd Bergmann , Stephen Rothwell , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Segher Boessenkool , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 06/10] powerpc: remove GCC version check for UPD_CONSTR In-Reply-To: References: <20210910234047.1019925-1-ndesaulniers@google.com> <20210910234047.1019925-7-ndesaulniers@google.com> Date: Sat, 11 Sep 2021 20:43:57 +1000 Message-ID: <87zgsjl7de.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor writes: > On 9/10/2021 4:40 PM, Nick Desaulniers wrote: >> Now that GCC 5.1 is the minimum supported version, we can drop this >> workaround for older versions of GCC. This adversely affected clang, >> too. >> >> Cc: Michael Ellerman >> Cc: Benjamin Herrenschmidt >> Cc: Paul Mackerras >> Cc: Segher Boessenkool >> Cc: Christophe Leroy >> Cc: linuxppc-dev@lists.ozlabs.org >> Signed-off-by: Nick Desaulniers >> --- >> arch/powerpc/include/asm/asm-const.h | 10 ---------- >> 1 file changed, 10 deletions(-) >> >> diff --git a/arch/powerpc/include/asm/asm-const.h b/arch/powerpc/include/asm/asm-const.h >> index 0ce2368bd20f..dbfa5e1e3198 100644 >> --- a/arch/powerpc/include/asm/asm-const.h >> +++ b/arch/powerpc/include/asm/asm-const.h >> @@ -12,16 +12,6 @@ >> # define ASM_CONST(x) __ASM_CONST(x) >> #endif >> >> -/* >> - * Inline assembly memory constraint >> - * >> - * GCC 4.9 doesn't properly handle pre update memory constraint "m<>" >> - * >> - */ >> -#if defined(GCC_VERSION) && GCC_VERSION < 50000 >> -#define UPD_CONSTR "" >> -#else >> #define UPD_CONSTR "<>" >> -#endif > > The only reason this exists is because of commit 592bbe9c505d > ("powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9"). It is > probably just worth sinking "<>" into all of the callsites and removing > UPD_CONSTR. Yeah that would be great if you're doing a v2. Or we can do it as a follow-up. cheers