crypto: x86/aria-avx - fix build failure with old binutils
authorTaehee Yoo <ap420073@gmail.com>
Sun, 15 Jan 2023 12:15:34 +0000 (12:15 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jan 2023 10:29:31 +0000 (18:29 +0800)
commite3cf2f8794b031ec0e640cb2dff95f45139ac4e9
treefe8fb30a151daa1d11476d1d89273adba53bc047
parent32e62025e5e52fbe4812ef044759de7010b15dbc
crypto: x86/aria-avx - fix build failure with old binutils

The minimum version of binutils for kernel build is currently 2.23 and
it doesn't support GFNI.
So, it fails to build the aria-avx if the old binutils is used.
The code using GFNI is an optional part of aria-avx.
So, it disables GFNI part in it when the old binutils is used.
In order to check whether the using binutils is supporting GFNI or not,
AS_GFNI is added.

Fixes: ba3579e6e45c ("crypto: aria-avx - add AES-NI/AVX/x86_64/GFNI assembler implementation of aria cipher")
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/Kconfig.assembler
arch/x86/crypto/aria-aesni-avx-asm_64.S
arch/x86/crypto/aria_aesni_avx_glue.c