Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp268200imu; Thu, 3 Jan 2019 19:23:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN6O6LYxqzNJ1g0Ta/3ecVtJg+RdRNCTh8YiAVpReDXTcaSnCAuzbCigByXpIhtaxY8rGa9m X-Received: by 2002:a62:6503:: with SMTP id z3mr49381347pfb.169.1546572215827; Thu, 03 Jan 2019 19:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546572215; cv=none; d=google.com; s=arc-20160816; b=c9LQ60fJrsP6jsDHgurJaJOZtcb966UOpjvl5NXfILzxvRlKINminLp0RykLy1W5jf VEOapI77D5Ce2iXzkVc4ahQYPNfxJ0xNvAmfCPdqrXLdVpvWayaQ+Hj0wssGE5R/5llQ uiX0wvoPdmbH0awm41+8kgS1rQiAcohxsm3Z8wSfnTPeWEdnXYDC/L6Jr/yZRThpi+pN +SOwplBa5qMYmxn4roF5gwC1mBSSocwpYy9xKZgRdkrf8QBKZ1oferpH0jdHrD6N0IY5 PbXTppVlCMyysuCG5s2PIV4IccwnPUvhTNtUn+nUoUAi4t317OGty4y5udoghCtaJntj Il7w== 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=51xr4xYeiDI4RYE/PzJ1r3c7j9DrlQRWm/NtP3kFLMo=; b=IkguWpO+s+3Q+Kme/ZHriLFwvqrdK2nvLUBp3QYkE/cnJ/0Pa1zcdAvdCtCSRIbr9Q 2DwadgdT4Yc2Rlp5tA1EocjsEv7MFm+R365pc7EruKCQTZqE5Af2TV3NkFljCCj8KJmq pHRlTx0jUBJxyAdX/QOSIJDzqKOUuqAzfYFSOhzS4SNWo5xIR4PKvBmSXaPY0hfFAQWe gj/pc1r4DlpqibTyMMFWwWLAhxAxMN00X1n6GISt4Oxeg0iAWV5JspZNxKrEyxMdsIhM pSJQolzdn6F3B//RPsJkKxHGvnkH8jQYTiW2OICMcF/82k5X1EkgVYRa6+S+qFpLEgJH a3BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=TYA9x5Pb; 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 f1si46712259pgn.502.2019.01.03.19.23.20; Thu, 03 Jan 2019 19:23:35 -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=TYA9x5Pb; 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 S1728123AbfACVsG (ORCPT + 99 others); Thu, 3 Jan 2019 16:48:06 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:54156 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728105AbfACVsG (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 CA7F05C0DDF; 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=51xr4xYeiDI4RYE/PzJ1r3c7j9DrlQRWm/NtP3kFLMo=; b=TYA9x5Pbx82LwyMAxfQFwLLbyerlqWRVh6xzfBxrmlh0atGvPW3XcVQsq/y2JumNzAfNWt CrI/k3g0KviFz4yPmJ3bpS5PPO4RCqSgg0m7bnXUT6HvQx1fSYo3Ic+rj6rd+oeRLah9yI 75rzeDJ1Tv2q5z8ZZMuV7DxF6z7B57s= 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 3/3] ARM: spinlock: use unified assembler language syntax Date: Thu, 3 Jan 2019 22:48:15 +0100 Message-Id: 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/spinlock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/spinlock.h b/arch/arm/include/asm/spinlock.h index 099c78fcf62d..8f009e788ad4 100644 --- a/arch/arm/include/asm/spinlock.h +++ b/arch/arm/include/asm/spinlock.h @@ -210,11 +210,12 @@ static inline void arch_read_lock(arch_rwlock_t *rw) prefetchw(&rw->lock); __asm__ __volatile__( +" .syntax unified\n" "1: ldrex %0, [%2]\n" " adds %0, %0, #1\n" " strexpl %1, %0, [%2]\n" WFE("mi") -" rsbpls %0, %1, #0\n" +" rsbspl %0, %1, #0\n" " bmi 1b" : "=&r" (tmp), "=&r" (tmp2) : "r" (&rw->lock) -- 2.20.1