Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1070229imj; Sat, 9 Feb 2019 14:56:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQ5qSUUi5ifV+uL2keKALN0EdJ/yUXHrQt3axPkIoMeB9g8Mz/z4bWByOXwLCD5LAHUCH6 X-Received: by 2002:a17:902:8f91:: with SMTP id z17mr29733060plo.300.1549752982982; Sat, 09 Feb 2019 14:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549752982; cv=none; d=google.com; s=arc-20160816; b=Qn56RcnvL4L9p92LlFTFCaVABt6IdZ+DTm274iaqhEDrxb91bXrpk+kI1+wwQNnoB4 Vjh+XKxQL21QRyTpKaXhIMavpe16IKSvo1u4M7Nr04I971meZBB++tvYaMoNDQsw/14Q NdOIhkgZLLI2JiZG4rGBOE+OACHNUbfNhAqxq4+yxB2s/tKzLQRNd/uyszIsYhg4Eaih XfBMSUCOh/YUwczQhBbaaapczidfnB98URj8uHEYd96M84rJoV3tS+l680faCTv8wckQ 2GUlqkfqL4oMl8HqWZW/UqYASELI//GLesnaQGhhxRKM/HSTHF0CrSIm6gh86pkzZOup FCfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=MlQkmw8s4mquGYq06cl4PilEa3gn5EmC0waOUU6hVHA=; b=PNd5XhYB6xx2rrauHf6KU22ZkCnksgW6i7WNpge66yLOH3q/CzAo5w6usln6rLaiFc 8TSYGMyPiUGPpTj0vmnqjFA97JM9afgy1jtVfF3GhEcuZi2vQA3PZUe2SlOoyCD8i5kg HrzPZ0xhnZylaSlsl7beDJ+XfYWEf/P9H4VFdlU/wi06Kc2LyHNEq1sghuhnzgc1dOPd QxbRGoqqYl0SzAjeCSBCl8K7/MYV3hMp5zZhiwf5OimK5AE91y/1+Wtqjz/ZK6TM0PFD TohXYkeEIbMxyAtXSzBognHI1jxUtIRgfZW1yi4O6ntrxDpVxJls0/yNfWVPKaaWpCpS l8Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=eQdv9n7j; 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 q127si6827583pfq.19.2019.02.09.14.55.43; Sat, 09 Feb 2019 14:56:22 -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=eQdv9n7j; 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 S1727090AbfBIWyO (ORCPT + 99 others); Sat, 9 Feb 2019 17:54:14 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:58914 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbfBIWyO (ORCPT ); Sat, 9 Feb 2019 17:54:14 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 888515C041A; Sat, 9 Feb 2019 23:54:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1549752852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MlQkmw8s4mquGYq06cl4PilEa3gn5EmC0waOUU6hVHA=; b=eQdv9n7j+d4yR9YNPEyUqziwhfY0OpKssWKWaIXZ6MJpdm5iTUmojvYKSRt8yoO4irYrPM yieWNk0IQ8vxh6IlSnED8hNEPdul5mkTcTfgeZvwujrV2rShYmQ0Q8XOU8FmgWrNLAVDv8 OSID4dda6jQCOSXzimzW9wKtwRdw2nk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sat, 09 Feb 2019 23:54:12 +0100 From: Stefan Agner To: Nicolas Pitre Cc: linux@armlinux.org.uk, ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, thierry.reding@gmail.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 2/5] ARM: use unified assembler in headers In-Reply-To: References: Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07.02.2019 17:10, Nicolas Pitre wrote: > On Thu, 7 Feb 2019, Stefan Agner wrote: > >> Use unified assembler syntax (UAL) in headers. Divided syntax is >> considered depricated. This will also allow to build the kernel >> using LLVM's integrated assembler. >> >> Signed-off-by: Stefan Agner >> --- >> arch/arm/include/asm/assembler.h | 8 ++++---- >> arch/arm/include/asm/vfpmacros.h | 8 ++++---- >> arch/arm/lib/bitops.h | 8 ++++---- >> 3 files changed, 12 insertions(+), 12 deletions(-) >> >> diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h >> index 28a48e0d4cca..60465b55683c 100644 >> --- a/arch/arm/include/asm/assembler.h >> +++ b/arch/arm/include/asm/assembler.h >> @@ -376,7 +376,7 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) >> .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER() >> 9999: >> .if \inc == 1 >> - \instr\cond\()b\()\t\().w \reg, [\ptr, #\off] >> + \instr\()b\cond\()\t\().w \reg, [\ptr, #\off] > > Similar comment here: you added a \() between \instr and b as needed, > but the one between \cond and \t (which was already redundant before) > may go. Thanks, Nicolas, fixed this. Also noticed that the else branch has such a null token in excess. Furthermore, the "t" token actually needs to be before the condition token too. It should look something like this in the end: .if \inc == 1 \instr\()b\t\cond\().w \reg, [\ptr, #\off] .elseif \inc == 4 \instr\t\cond\().w \reg, [\ptr, #\off] .else ... -- Stefan