]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: aegis128-neon - use Clang compatible cflags for ARM
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 13 Sep 2019 18:36:18 +0000 (19:36 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:14:59 +0000 (08:14 -0600)
commit19f2612928c4b59c53ee0bf10f58902453d8e97a
tree87e470465ae1dea6a7a0aeea95b47ef0e426e6a6
parenta900ca91c98adb7dc34c23167d710b87e9a21591
crypto: aegis128-neon - use Clang compatible cflags for ARM

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit 2eb2d198bd6cd0083a5363ce66272fb34a19928f ]

The next version of Clang will start policing compiler command line
options, and will reject combinations of -march and -mfpu that it
thinks are incompatible.

This results in errors like

  clang-10: warning: ignoring extension 'crypto' because the 'armv7-a'
  architecture does not support it [-Winvalid-command-line-argument]
  /tmp/aegis128-neon-inner-5ee428.s: Assembler messages:
            /tmp/aegis128-neon-inner-5ee428.s:73: Error: selected
  processor does not support `aese.8 q2,q14' in ARM mode

when buiding the SIMD aegis128 code for 32-bit ARM, given that the
'armv7-a' -march argument is considered to be compatible with the
ARM crypto extensions. Instead, we should use armv8-a, which does
allow the crypto extensions to be enabled.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
crypto/Makefile