]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/gcm - use inline helper to suppress indirect calls
authorArd Biesheuvel <ardb@kernel.org>
Mon, 29 Jun 2020 07:39:24 +0000 (09:39 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 12:14:32 +0000 (22:14 +1000)
commitda15203f2ad39d1f1b953370cf59d3d9da5aaaf3
treedaeeb1cf9ec3cd5a9b65550efac7224818affc8a
parent9e93b9aa4d6c0765f2d24ed6e3e4564761448e99
crypto: arm64/gcm - use inline helper to suppress indirect calls

Introduce an inline wrapper for ghash_do_update() that incorporates
the indirect call to the asm routine that is passed as an argument,
and keep the non-SIMD fallback code out of line. This ensures that
all references to the function pointer are inlined where the address
is taken, removing the need for any indirect calls to begin with.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/ghash-ce-glue.c