Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp387652imj; Thu, 7 Feb 2019 05:59:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IYYSkaNQibK3ugEGmnRQiIDc9N5pHYYBvcLlYWSddfauPpgWdHsaYLHaRtuSauikmCysC7n X-Received: by 2002:a65:5c4b:: with SMTP id v11mr111016pgr.333.1549546586898; Thu, 07 Feb 2019 05:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549546586; cv=none; d=google.com; s=arc-20160816; b=sUE+q2T99a87oaVEJg6kdnbZj201PVWkSspL9Sz6XOul0KepfhS67DKdULCOMtuPf4 +r8S2wwFxY+vNgMhFh9EAdF61QDp3vJFVKaFxzdgetfb00tYvSk40WkU2czyFrv9NTwC 42cRl54jctbitBDfCW4QPqVcoLriz3l1MEzDyK9YtBwgugdXX9cNRzidS8Hgh50WxXak JfsXvzNwk7D5phL1iArzNWMq7opL6ITp4pDosxjDlmJlCOrjsfU6cHDGvqlleL/1Pm7F q/JhCArTglZH8YcO92zdWT5PEJk8uJN+kVMEJRD1ddEQT/PfHThFLKVgsIptHv5ojZqx X+pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4JkB7tkcxbbK3agVR2jQok9w+5Zbzlx0aaFAqKfM03I=; b=vLc/WNG1mCf2Vqa/6+SOci3oKBCuObicZ6PRx7XVtx5muqyq5Sn2N1ySavj4mhG7yd qZZvSyPcznzEC33Pl+hXNeUmwxnGVd7Etij4AQ7jhQKWR+kt5bj5/BnjD4VZEQbeKej9 rS+wPP+zyFRFOW0r3/7SxXrE4wmy4bnxUMhSkE9CnB5keZJ4Ki7JbnBmDy1IDfjiMtV8 dRdC86C2jFlFhMoDSZuuTzZX6dUpPW4CMJhqzdNCuU1AHx8xz0ESAGuh64rq7PEgWISq 1y0/iZN79do2ISP9OeIVDrYui4bHiFpt9j71JO7QzMTgEL78wbU371hRLhK5pKbgU+3K UqjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5T1SF6j; 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 h75si7009983pfj.257.2019.02.07.05.36.10; Thu, 07 Feb 2019 05:36:26 -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=W5T1SF6j; 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 S1727174AbfBGNek (ORCPT + 99 others); Thu, 7 Feb 2019 08:34:40 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:50616 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfBGNek (ORCPT ); Thu, 7 Feb 2019 08:34:40 -0500 Received: by mail-it1-f194.google.com with SMTP id z7so14824934iti.0 for ; Thu, 07 Feb 2019 05:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4JkB7tkcxbbK3agVR2jQok9w+5Zbzlx0aaFAqKfM03I=; b=W5T1SF6jdEsuUqv6d17UoJrsZBcCP0NikNoDcomPUq+0g2v8gYD+WR2E2p5k7t/ZDJ CYi5No/1yi0U3rFYYPsHvpQgf70Jy46Vd+5Ch3aTMkYfAB1K5jiENFCxsnvJSpWacZQj Yr9IczkN2j3SBWR8yAsGR/t+M9amEZ8mSs0INwnEw6ePPRb+a96kMWQ1bkdqkFUQEygw Ii+yeVQnY/eBLRp09Tq2xyt/I+/Wua3XFXlP8TYCXqgyTlTMfNC4n+sFfelTU/nATPC8 sZLPqW6jAmbT9Z2njrUU4BUUgdOwhfcR3E1wtJtxzs/mUAzAl6SfKRLfdR1mgcM6/qJq TfaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4JkB7tkcxbbK3agVR2jQok9w+5Zbzlx0aaFAqKfM03I=; b=Cgj6nfmXRpPlfmS0BEQPAIBACVojr8r2KQOmYwld36cfjc7eLDPnnUxmVSHmn6edU1 4usQeWl406/WB7g4MM8FGhmGYOhJTZl8t0fO00Jp2gA47WXbXdRtqbcz5LwPoB+cuAPv 8a9MABGRaBCz6xEUh+w/1UGjiWcpmLEdXA9mlszCkpdZZ6VKqgGU2aY+I6u8QRfoP0jc RLobGafAO0SqJCCNRrasLnujtr2rIfkcfZpGIf3lyTeBvTEO1dkc50031LJfvmEzigQ2 FEXkxCyDoQFY8yEOHLMrBnVwmyI4kwLqLv0bZA+212465Vt1XY4Q8pMMsErDGD+6I/1d Oxdg== X-Gm-Message-State: AHQUAuZKz/bA4l59jGnBD8JIUABqlGdIB8SjZVKXKxEsO/PcQocwW7M+ k3KHnMpgk7Y79TY25L1eMkxb7H94R5bMJ7c8Ws8G+Q== X-Received: by 2002:a5e:9704:: with SMTP id w4mr1512278ioj.60.1549546479240; Thu, 07 Feb 2019 05:34:39 -0800 (PST) MIME-Version: 1.0 References: <5b710816f634307d6a67ffcf7e4b538818dcb2a3.1549532513.git.stefan@agner.ch> In-Reply-To: <5b710816f634307d6a67ffcf7e4b538818dcb2a3.1549532513.git.stefan@agner.ch> From: Ard Biesheuvel Date: Thu, 7 Feb 2019 14:34:27 +0100 Message-ID: Subject: Re: [PATCH 1/5] ARM: use unified assembler in macros To: Stefan Agner Cc: Russell King , Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , Nicolas Pitre , Thierry Reding , Will Deacon , Julien Thierry , Mark Rutland , Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, On Thu, 7 Feb 2019 at 10:46, Stefan Agner wrote: > > Use unified assembler syntax (UAL) in macros. Divided syntax is > considered depricated. 'deprecated' > This will also allow to build the kernel > using LLVM's integrated assembler. > > Signed-off-by: Stefan Agner > --- > arch/arm/lib/copy_from_user.S | 2 +- > arch/arm/lib/copy_to_user.S | 2 +- > arch/arm/lib/memcpy.S | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/lib/copy_from_user.S b/arch/arm/lib/copy_from_user.S > index 0d4c189c7f4f..712ca399f559 100644 > --- a/arch/arm/lib/copy_from_user.S > +++ b/arch/arm/lib/copy_from_user.S > @@ -91,7 +91,7 @@ > .endm > > .macro str1b ptr reg cond=al abort > - str\cond\()b \reg, [\ptr], #1 > + strb\cond\() \reg, [\ptr], #1 You can drop the null token here, you only need that in the middle of a word. Same below. > .endm > > .macro enter reg1 reg2 > diff --git a/arch/arm/lib/copy_to_user.S b/arch/arm/lib/copy_to_user.S > index 97a6ff4b7e3c..2e402b815e13 100644 > --- a/arch/arm/lib/copy_to_user.S > +++ b/arch/arm/lib/copy_to_user.S > @@ -49,7 +49,7 @@ > .endm > > .macro ldr1b ptr reg cond=al abort > - ldr\cond\()b \reg, [\ptr], #1 > + ldrb\cond\() \reg, [\ptr], #1 > .endm > > #ifdef CONFIG_CPU_USE_DOMAINS > diff --git a/arch/arm/lib/memcpy.S b/arch/arm/lib/memcpy.S > index 64111bd4440b..1c9e625148ca 100644 > --- a/arch/arm/lib/memcpy.S > +++ b/arch/arm/lib/memcpy.S > @@ -30,7 +30,7 @@ > .endm > > .macro ldr1b ptr reg cond=al abort > - ldr\cond\()b \reg, [\ptr], #1 > + ldrb\cond\() \reg, [\ptr], #1 > .endm > > .macro str1w ptr reg abort > @@ -42,7 +42,7 @@ > .endm > > .macro str1b ptr reg cond=al abort > - str\cond\()b \reg, [\ptr], #1 > + strb\cond\() \reg, [\ptr], #1 > .endm > > .macro enter reg1 reg2 > -- > 2.20.1 >