Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1849736imu; Sat, 5 Jan 2019 08:19:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xkb/pm/cJFYgSvwWoH7rMhqdsQ8t2+inexY6WH1vexpVkyAbuPjWk1dB5siNOHFlrviPeb X-Received: by 2002:a62:5d0c:: with SMTP id r12mr58638362pfb.0.1546705160695; Sat, 05 Jan 2019 08:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546705160; cv=none; d=google.com; s=arc-20160816; b=t8qrnS0FNHUb1El9oN5KOv0HpIeEiKEUksC3Y9GrGisuYc5HqSb7zBz142fuLDGnvc QhI1UeG0AuonVhfcDeg4fCKR+S+idO8SxdQxrELCWIM5HSDkznjHzuX9RkTP4uhxaCnY mN6TPrYpJ3Xk5aRcjPQIHFKWDXXWDWt0ddJ7cgEGWVhBHrzAAUUWFaghYQl4HJaF72Il mrKU932vil2LgOLkKmUBqQ3PvKuGRA7yf/1YOC7E3aX2ML2+XPr6jYmk/lSTq/3E+213 nvVoOwhT2aXSPCxHJFEJM117TKzq53wJuRkuOP4Y1IVwnStVCoZtozjJFWam03E8iOTr 3K7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=I+U7fwl8CskayCBqp51KRo+AoACBcx3zcCyqUVTTByQ=; b=KtkCaH978cb+JIn3KT3mIs643muvyHJGL0GkYtifyiD60j51CkRZCzpWx772q17RT6 5KuNiQ5F7rpgCm7vGe5VuZMN7kzhTrHF1enG1i6+mYb8DkmFW2ly0Rs3gvnAbVYqGGRC YkyGuI3wCVs9EpnBicXNbRqJ7X7NNIUjKd/eAN2XKwjGMy3s2KG/2Goa+hdUDftt9WNl XI8BPFUGu8fFgT/hKP1Le8e7j+a3llwZS7Ejb/5wuzMZ8Q6yOaMAB65Y79228wYPUjUX BdSII8i3e7VeG/DSsELa+/zrWNm//q0Uk4c+ltC6cGlj/foERmFvzGr6c3VH85rKN3B1 h5/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yc3y4A4f; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si55050758pga.352.2019.01.05.08.19.05; Sat, 05 Jan 2019 08:19:20 -0800 (PST) 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=@linaro.org header.s=google header.b=Yc3y4A4f; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbfAEQMW (ORCPT + 99 others); Sat, 5 Jan 2019 11:12:22 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:37338 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfAEQMW (ORCPT ); Sat, 5 Jan 2019 11:12:22 -0500 Received: by mail-qk1-f196.google.com with SMTP id g125so23186967qke.4 for ; Sat, 05 Jan 2019 08:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=I+U7fwl8CskayCBqp51KRo+AoACBcx3zcCyqUVTTByQ=; b=Yc3y4A4fS/hGIQnv4Y4KHRjx+WjpJ37UxAvF11MAInrQAW0v/VoSFyNmfMQZkT2VUq 8JwuauCkPUHX+F+FttndqFVIdw655ezZuqrO4iI8PkTjNPRTv6Rsbwknn0JUJFknCPzH J0IEdpK6AUT3hVWO52a87do0n/TSquEjDluis= 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:in-reply-to:message-id :references:user-agent:mime-version; bh=I+U7fwl8CskayCBqp51KRo+AoACBcx3zcCyqUVTTByQ=; b=Q41jzv6jlcDZgwuiUvzr9+I6BKvNnSTraR/sp8K5JvTc4AqgVJT59g7i/oh4TUUAwg 7TY0fVrZ/ySODUnSPXeg6uQv3uTTa4qFTAT3wUwHZ+7dQxL0iEVqRMHvR55taxlkbgoB RBrbRAUusVcyFXP6AA4re5aIYvcRlU1FkCB/PIyLMfn6GFvTq/ToN4+da9UoISiyzH28 4xeR4Im87pr+79/bz+yngoBTYv/L1IpPPBcKXWw6+uR+7sHyVkqnYTYbguoG6aVLACFK 2Sa4ab//TfMNDiaE5TnQZ8tVnvVrWHX0HAbTspX8BHLT0A7C9SOlh3CmV1OFPrK2p3Zb reoA== X-Gm-Message-State: AJcUukdtr9imwBlN6o6smdaq5bX6J7V/n1nN4xx6/G7/5+c9MoN672mw XF5e84BbwpGUNobo6NpE6Kdzkw== X-Received: by 2002:a37:5686:: with SMTP id k128mr48700405qkb.29.1546704741229; Sat, 05 Jan 2019 08:12:21 -0800 (PST) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id m20sm24347580qkk.66.2019.01.05.08.12.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Jan 2019 08:12:20 -0800 (PST) Date: Sat, 5 Jan 2019 11:12:18 -0500 (EST) From: Nicolas Pitre To: Stefan Agner cc: linux@armlinux.org.uk, ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, peterz@infradead.org, mingo@redhat.com, will.deacon@arm.com, julien.thierry@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/3] ARM: uaccess: use unified assembler language syntax In-Reply-To: <5ef2acc655abfbe8bfa2cd30ecc5c2286b8fdfa3.1546551693.git.stefan@agner.ch> Message-ID: References: <5ef2acc655abfbe8bfa2cd30ecc5c2286b8fdfa3.1546551693.git.stefan@agner.ch> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Jan 2019, Stefan Agner wrote: > Convert the conditional infix to a postfix to make sure this inline > assembly is unified syntax. Since gcc assumes non-unified syntax > when emitting ARM instructions, make sure to define the syntax as > unified. > > This allows to use LLVM's integrated assembler. > > Signed-off-by: Stefan Agner > --- > Changes since v1: > - Explicitly use unified syntax for inline assembly > > > arch/arm/include/asm/uaccess.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h > index 6390a40f16e7..a50f9b4e2574 100644 > --- a/arch/arm/include/asm/uaccess.h > +++ b/arch/arm/include/asm/uaccess.h > @@ -86,7 +86,8 @@ static inline void set_fs(mm_segment_t fs) > #define __range_ok(addr, size) ({ \ > unsigned long flag, roksum; \ > __chk_user_ptr(addr); \ > - __asm__("adds %1, %2, %3; sbcccs %1, %1, %0; movcc %0, #0" \ > + __asm__(".syntax unified\n" \ > + "adds %1, %2, %3; sbcscc %1, %1, %0; movcc %0, #0" \ Instead of sprinkling ".syntax unified" around, you could consider including when needed. Nicolas