Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1877163pxb; Fri, 10 Sep 2021 16:50:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ1Fbq7zvIICyr9oTgyoY0K30759f96uYOCxCTWRBw3TZ6JwK/wSTKhGhHkx2jKq0yXVWY X-Received: by 2002:a05:6402:3584:: with SMTP id y4mr313534edc.183.1631317805489; Fri, 10 Sep 2021 16:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631317805; cv=none; d=google.com; s=arc-20160816; b=Gi9jHL+HSSFjnHI8HYF5MTwjKkKWZPM33D+sjtukQGgaNmoparCOzjrqpjXbdSlwMn DV29FxW/ozlVYN6LAU42Kni8KgJxOOiSMRgGUTJy1UVxEhQFWFC3WLGB1Bz7hJtR2EjX YFPmHZ+QA4ogIs5c96AY7cd8i7sLtea6T8Tnk3K318uXRURW996K5og23aSSKbv11/zj XXcb5nBWTXhmsTG0LvqDynM+K89OqyLObPhAi7e/SZg9u6coIlzIXZo1bMBvWQxn62gh 3svYO6zDYCjgKR29wHqMPwyzMjyYDmsM4cnY3xmYkIMVMCvzVOrKeiPhBxltPmw9BuYt MMjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=gNay/r40HhdaT/VpWXBBLu/goWFs2DVguCjEm60adBo=; b=pGfEQmC7Gj0KcG2KvsPBcHT+FZwM17csYh7AWF58+8I7jYhDeL5J2Co8TMXGBvh9Ca TuINx35oqPoVFiabjBBm9L1plhSaHjZzBnuUIljLxVC5TLHdaNiZ/ZXo/E+YkHtL5ynO 5LgjO8iLeTT6AuMjXUGqcUgu/0m6HA+Po7W3AvmjkPTimTs1hhzbuJV5jtYAJkKgExEs aUv8BMDph/Vyh8nvUtLjHAyiB9jXe39r7xT3be5o25lRxaFBzCLFV8g/Lk9MSQ2JEzPq VynBfVYJFdXd+1r4eUIP0Rzi5//8LLywdBx7IskY9H7yLWorP+fCphBPFQQ8OQCU1YNN 0uOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KrXuEsLQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si180065ejr.43.2021.09.10.16.49.41; Fri, 10 Sep 2021 16:50:05 -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=@kernel.org header.s=k20201202 header.b=KrXuEsLQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234809AbhIJXth (ORCPT + 99 others); Fri, 10 Sep 2021 19:49:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234787AbhIJXtf (ORCPT ); Fri, 10 Sep 2021 19:49:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 53CDF611BF; Fri, 10 Sep 2021 23:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631317703; bh=3W+6f0wuipTibyjTQaN5vgjbRHyQ1UrUz0L6qzxUplo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KrXuEsLQIXYeh9eXjpq16ZYWxHkH1WKFaE5hG2+4bXOmbBKajE6+K36WBkyjLHeyS eKFv24TqMQXYQqVMk6mrx+RU19w1nOz9pH9XF2rOZ95sCLmquwI9BE51WUXEkYpaBF 8RkK8UfnGtQA3x4rATph8qC3uKDp9d2VQz/hAbFxMKvK4hDbew9QgCKm55he2f3w1v YrUP8LHlt6PJhToOv4sAeceahYMsxDn4WfexupxoLJM9GTQbht9lxUCWgUg8tzdWoI WHMy+eff9sVxectgaPmxHdq7NHT5WCoQXjgQNJARg7qXBmd4+Te7RyzLss+7SM92v6 5gpQvxgkkyESw== Subject: Re: [PATCH 06/10] powerpc: remove GCC version check for UPD_CONSTR To: 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, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Segher Boessenkool , Christophe Leroy , linuxppc-dev@lists.ozlabs.org References: <20210910234047.1019925-1-ndesaulniers@google.com> <20210910234047.1019925-7-ndesaulniers@google.com> From: Nathan Chancellor Message-ID: Date: Fri, 10 Sep 2021 16:48:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210910234047.1019925-7-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > #endif /* _ASM_POWERPC_ASM_CONST_H */ >