Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1847802imu; Sat, 5 Jan 2019 08:16:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Mz4vevHwKDVbRYobw0VNMIrdg7QiR0/Tv5n8ZI7wmoMIOxevkLT1o9tS0eJ0nQ7QOltaf X-Received: by 2002:a63:a91a:: with SMTP id u26mr5179986pge.349.1546705007291; Sat, 05 Jan 2019 08:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546705007; cv=none; d=google.com; s=arc-20160816; b=U5XSJkwD1wzvG2X6wjIPszWHjgJwegN68xI423V6PhJiKfbmlfDB5MwkR+H10yPL6N E1UwACpTTASjghFm1PICfO23BG/LYDQlYYSQZB6ZsrbmRcoTbkBpvO3R1imNAJwmWsBV 40zaqvTFM4NqHJEH8SDQ6+8qVU3rbHcxReOV6emN8gTnxXek7Pnh3PKFMr8WKnj1JwW3 mQynbO/W2pTZQTe3pLzW5LqhWARCAdDyTdLkCrNNZ001Hoz8SNtHn9szGuZoVmVtTWH9 V6mYAyAyo62/MFy5/s9T+ET9iLCdRvR518bHl0S82ZrYNhz41FIJoHcTSWCAd3XFKZwK /kvQ== 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=wJQD+3taV+2dRWcSlIQEBzhFTwRN7ox4H4SOm0Qzovw=; b=H/N0mneETYdP4g6QRVmm3TBlli3izRHldyQgku9YK8yZ903umikgrcu2bHRLeSsMYZ yNlp7N6IrkL7oAALAA+kLUQmGTtE8qeUN9aiRFHi4fniLdzPp+sog5Tiaup/XrqOd8nC c0cHD9bM8I3uyv6LmqG4hIeSRLk8OuUO2RMIMu5g7m1EtRgnWWNG0OszKTGtVZsrXDLK RHfQXwDMSQED0ZSW/ZRdTcpkgqLeINsbAX/IJhQA45A+a9piXLPXBoOUMHk1tT1645Vd Q0IhrUWHOanUDdx/SJyyPvJW4rq5CDZeTE5YF9OxlcNqE+6pgXdkN+NWdierzAQwXnDR 4j5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iBjqCOFo; 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 b30si18672863pla.285.2019.01.05.08.16.32; Sat, 05 Jan 2019 08:16:47 -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=iBjqCOFo; 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 S1726383AbfAEQNe (ORCPT + 99 others); Sat, 5 Jan 2019 11:13:34 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40651 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfAEQNe (ORCPT ); Sat, 5 Jan 2019 11:13:34 -0500 Received: by mail-qt1-f196.google.com with SMTP id k12so43541611qtf.7 for ; Sat, 05 Jan 2019 08:13:33 -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=wJQD+3taV+2dRWcSlIQEBzhFTwRN7ox4H4SOm0Qzovw=; b=iBjqCOFozSEyig3gjqV151FE6BJi1rXa1LokArmqdy3Ch48OVYicb/RHA1FKaS3aac Vrx1Rw4rUblUPUu7BfyjwQp0yA5WGixKY1XoyhAj75K+5jHdUj1MaUF70ptI7fG54wfc CR4p7ft9x5KviGXEUqm568EHrLYHmdZWt8YYs= 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=wJQD+3taV+2dRWcSlIQEBzhFTwRN7ox4H4SOm0Qzovw=; b=HnfCxa/LbBwaAk8a2YZlIfjwD8Xfa4qMLodZYGTr0UEBtpAzGxlTQpbbrrtHJrs8BJ Xb/uJ1fRidqDTeeeAojYKlEkPgAQ18fxC2k6nd8IZSGn4Z98DpgX80K7VnRQ+xoWrrfz l4WeckYmyt7koRhq1Q8Ugblwn/HXgvvQ29dc3ZAF1MRsQnCoxPhlMV8RDpdovkT8vmQ0 bAM7F84GgUEq8sZb7EiR6CFmLXha8ZBdJSvC1VI9BqaBcUBtv7A5pPvNlw7lEf2xSCCx RjcIt8W/oE/iaDbO3CMD2Doz7hs0Cub1NtxHMQedoHVofA+E9jnHMkSKIG45zrY4uZcT IceA== X-Gm-Message-State: AA+aEWbhllWh9RsgMwHbYmDzOZ20xlBUbU7SjDXadCzhL3oz7ppsBU7l 5ffqjD5HlP73XzdcJ3jJ/SKwYw== X-Received: by 2002:ac8:2b99:: with SMTP id m25mr53867090qtm.36.1546704813228; Sat, 05 Jan 2019 08:13:33 -0800 (PST) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id q54sm31019163qtb.64.2019.01.05.08.13.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Jan 2019 08:13:32 -0800 (PST) Date: Sat, 5 Jan 2019 11:13:30 -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 3/3] ARM: spinlock: use unified assembler language syntax In-Reply-To: Message-ID: References: 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. Same comment as for patch 2/3. > > 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 > >