All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 4.9] ARM: 8723/2: always assume the "unified" syntax for assembly code
Date: Sat, 10 Apr 2021 13:09:59 +0200	[thread overview]
Message-ID: <YHGHh13fy1nok5CT@kroah.com> (raw)
In-Reply-To: <20210405190827.502021-1-nathan@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]

On Mon, Apr 05, 2021 at 12:08:27PM -0700, Nathan Chancellor wrote:
> From: Nicolas Pitre <nicolas.pitre@linaro.org>
> 
> commit 75fea300d73ae5b18957949a53ec770daaeb6fc2 upstream.
> 
> The GNU assembler has implemented the "unified syntax" parsing since
> 2005. This "unified" syntax is required when the kernel is built in
> Thumb2 mode. However the "unified" syntax is a mixed bag of features,
> including not requiring a `#' prefix with immediate operands. This leads
> to situations where some code builds just fine in Thumb2 mode and fails
> to build in ARM mode if that prefix is missing. This behavior
> discrepancy makes build tests less valuable, forcing both ARM and Thumb2
> builds for proper coverage.
> 
> Let's "fix" this issue by always using the "unified" syntax for both ARM
> and Thumb2 mode. Given that the documented minimum binutils version that
> properly builds the kernel is version 2.20 released in 2010, we can
> assume that any toolchain capable of building the latest kernel is also
> "unified syntax" capable.
> 
> Whith this, a bunch of macros used to mask some differences between both
> syntaxes can be removed, with the side effect of making LTO easier.
> 
> Suggested-by: Robin Murphy <robin.murphy@arm.com>
> Signed-off-by: Nicolas Pitre <nico@linaro.org>
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
> [nathan: Resolve small conflict on 4.9 due to a lack of 494609701e06a]
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> 
> Hi all,
> 
> This commit is needed to fix the backport of commit 7f9942c61fa6 ("ARM:
> s3c: fix fiq for clang IAS"):
> 
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org/message/MJWA3VGAUNQYOL7XZBYMS4EI4AYRC3XN/
> 
> It is present in 4.14+ and it has been validate via TuxSuite across a
> variety of arch/arm configs with no errors so I feel it should be a
> fairly safe backport.

Now queued up, thanks.

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Nathan Chancellor <nathan@kernel.org>
Cc: Sasha Levin <sashal@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Russell King <linux@armlinux.org.uk>,
	Robin Murphy <robin.murphy@arm.com>,
	kernel test robot <lkp@intel.com>,
	kbuild-all@lists.01.org, stable@vger.kernel.org
Subject: Re: [PATCH 4.9] ARM: 8723/2: always assume the "unified" syntax for assembly code
Date: Sat, 10 Apr 2021 13:09:59 +0200	[thread overview]
Message-ID: <YHGHh13fy1nok5CT@kroah.com> (raw)
In-Reply-To: <20210405190827.502021-1-nathan@kernel.org>

On Mon, Apr 05, 2021 at 12:08:27PM -0700, Nathan Chancellor wrote:
> From: Nicolas Pitre <nicolas.pitre@linaro.org>
> 
> commit 75fea300d73ae5b18957949a53ec770daaeb6fc2 upstream.
> 
> The GNU assembler has implemented the "unified syntax" parsing since
> 2005. This "unified" syntax is required when the kernel is built in
> Thumb2 mode. However the "unified" syntax is a mixed bag of features,
> including not requiring a `#' prefix with immediate operands. This leads
> to situations where some code builds just fine in Thumb2 mode and fails
> to build in ARM mode if that prefix is missing. This behavior
> discrepancy makes build tests less valuable, forcing both ARM and Thumb2
> builds for proper coverage.
> 
> Let's "fix" this issue by always using the "unified" syntax for both ARM
> and Thumb2 mode. Given that the documented minimum binutils version that
> properly builds the kernel is version 2.20 released in 2010, we can
> assume that any toolchain capable of building the latest kernel is also
> "unified syntax" capable.
> 
> Whith this, a bunch of macros used to mask some differences between both
> syntaxes can be removed, with the side effect of making LTO easier.
> 
> Suggested-by: Robin Murphy <robin.murphy@arm.com>
> Signed-off-by: Nicolas Pitre <nico@linaro.org>
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
> [nathan: Resolve small conflict on 4.9 due to a lack of 494609701e06a]
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> 
> Hi all,
> 
> This commit is needed to fix the backport of commit 7f9942c61fa6 ("ARM:
> s3c: fix fiq for clang IAS"):
> 
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/message/MJWA3VGAUNQYOL7XZBYMS4EI4AYRC3XN/
> 
> It is present in 4.14+ and it has been validate via TuxSuite across a
> variety of arch/arm configs with no errors so I feel it should be a
> fairly safe backport.

Now queued up, thanks.

greg k-h

  reply	other threads:[~2021-04-10 11:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02  3:59 [linux-stable-rc:linux-4.9.y 1825/2149] drivers/spi/spi-s3c24xx-fiq.S:52: Error: bad instruction `subsne pc, lr, #4' kernel test robot
2021-04-03 11:00 ` Arnd Bergmann
2021-04-03 11:34   ` Nathan Chancellor
2021-04-03 11:47     ` Greg Kroah-Hartman
2021-04-05 19:08       ` [PATCH 4.9] ARM: 8723/2: always assume the "unified" syntax for assembly code Nathan Chancellor
2021-04-05 19:08         ` Nathan Chancellor
2021-04-10 11:09         ` Greg Kroah-Hartman [this message]
2021-04-10 11:09           ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YHGHh13fy1nok5CT@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.