crypto: x86/aria-avx2 - fix build failure with old binutils
authorTaehee Yoo <ap420073@gmail.com>
Sun, 15 Jan 2023 12:15:35 +0000 (12:15 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jan 2023 10:29:32 +0000 (18:29 +0800)
commit1eb468b3c7199cf7fe0c34ee37b95ae0e9bcc5fe
tree947fc179072b777a2dd968a8bcc4f2f6a8f7d3ba
parente3cf2f8794b031ec0e640cb2dff95f45139ac4e9
crypto: x86/aria-avx2 - 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-avx2 if the old binutils is used.
The code using GFNI is an optional part of aria-avx2.
So, it disables GFNI part in it when the old binutils is used.

Fixes: 37d8d3ae7a58 ("crypto: x86/aria - implement aria-avx2")
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/crypto/aria-aesni-avx2-asm_64.S
arch/x86/crypto/aria_aesni_avx2_glue.c