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)
commite4f874858cc16bdf99ca4aa678c94d6e448f8847
treedaeeb1cf9ec3cd5a9b65550efac7224818affc8a
parent17d0fb1febbc34839a1ed5af8622478691d870df
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