Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp268037imu; Thu, 3 Jan 2019 19:23:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN6DzLFweS/FxO7dIe3xdrdwgT03jgqxJ2obdCq9yI145owkkzXxVxZJatnU5Sm/+wpfGtVg X-Received: by 2002:a63:f201:: with SMTP id v1mr222445pgh.232.1546572199754; Thu, 03 Jan 2019 19:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546572199; cv=none; d=google.com; s=arc-20160816; b=YLMG8B+yd2tVro1pjaGDqceBC9rMg6xlr4c/a+0XS+nQmA+O/OLM/vGlRODGPQYFSd TAWxUNEEAoFyTSwIbH174nnZhgmP/UYUAEJt4ECW0XxwnFX2M4ApW62bcGaRufgjMyRZ dJjh/PIbgnv+Di7s885kjH49B650WVMSlYOVAf3jGlSMo1r6pL39Id88sJYMB3a/mkQA 1krbf/RsxqPlzobHPFEZOFsjU3YXEsfXcjedrxy5ELa9MKFIVKSQSdouQJjHKLfdXFXK 4mE2R58fLdYJ7ClB367lcj3dYU/pjKYOYYka1M9TA2AnOXS9aMBMY/GC+hFmuwl641EJ F0eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nm4UmKZymvFz3g4I1uxh32+ZhB2G26RZTf6BIquMT90=; b=VsAYY830M9PY20SJwTLP1sqlPm2pQjtowfZ61pz4foNnssCN18j0C1G6dBmj/k8Ebj ueMYdvS4V2L3LVQTMTx1xTZz5Y6Vd/OS0dydQAtwBbdJD8pOUp3x1xLxMzxq1IKmzXZM qiPg3s1mannwSyw8NXR3AKPNfaB0e1Wb39c3MStYpe1G6eh5BuEZxK9xU/2x7ifd2xYc 7cXFynQKKmbQbN2u10bNJkGyG3kdIP7dV1SsHJlkkE8MMxP/VLZdkqcA6GRrSL8w4ayO 3SUDpaKEOvvECDmwhwwDuEYH1nAt8Y4dcm69k/2dzlVCur+oyDIFvnqLvarnhCAt/Ccz Kf2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=yJXIoeis; 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 d13si4905572pgh.196.2019.01.03.19.23.03; Thu, 03 Jan 2019 19:23:19 -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=@agner.ch header.s=dkim header.b=yJXIoeis; 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 S1728166AbfACVsP (ORCPT + 99 others); Thu, 3 Jan 2019 16:48:15 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:54134 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbfACVsG (ORCPT ); Thu, 3 Jan 2019 16:48:06 -0500 Received: from zyt.lan (unknown [IPv6:2a02:169:3465::564]) by mail.kmu-office.ch (Postfix) with ESMTPSA id B08DB5C0DDD; Thu, 3 Jan 2019 22:48:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546552084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Nm4UmKZymvFz3g4I1uxh32+ZhB2G26RZTf6BIquMT90=; b=yJXIoeisnxddINmwN39ZHj+JAuzeVDTn1UH/6K4YvXOHmGagmySEJzLiI2ct+79pOmhNQL NkN7J/DQx+puP8yB+g1pCUlAX6PgQ/MdJLWwlim5nkRVIjagqg+u7U6ZOdP2wO4jKhxD1D Gys+/LYDKwV5j0ns1P6pbVvBlQhc9Z0= From: Stefan Agner To: linux@armlinux.org.uk Cc: ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, nicolas.pitre@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, Stefan Agner Subject: [PATCH v2 2/3] ARM: uaccess: use unified assembler language syntax Date: Thu, 3 Jan 2019 22:48:14 +0100 Message-Id: <5ef2acc655abfbe8bfa2cd30ecc5c2286b8fdfa3.1546551693.git.stefan@agner.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" \ : "=&r" (flag), "=&r" (roksum) \ : "r" (addr), "Ir" (size), "0" (current_thread_info()->addr_limit) \ : "cc"); \ -- 2.20.1