]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm/ghash-ce - define fpu before fpu registers are referenced
authorStefan Agner <stefan@agner.ch>
Wed, 29 Jun 2022 18:02:27 +0000 (11:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Jul 2022 14:28:52 +0000 (16:28 +0200)
commitee9fad811d7572384cf08f7c4d9e65bd1860a48e
tree14cf0f3a42310b82ecd18dd9ec4a4e9a1b27c4d3
parentf1a17628481eb3ae4afac583d5be74a0f9f284c4
crypto: arm/ghash-ce - define fpu before fpu registers are referenced

commit 13c143943e4fdd63ff5db7d22e5f848a81ae907b upstream

Building ARMv7 with Clang's integrated assembler leads to errors such
as:
arch/arm/crypto/ghash-ce-core.S:34:11: error: register name expected
 t3l .req d16
          ^

Since no FPU has selected yet Clang considers d16 not a valid register.
Moving the FPU directive on-top allows Clang to parse the registers and
allows to successfully build this file with Clang's integrated assembler.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/crypto/ghash-ce-core.S