crypto: x86/aria-avx512 - fix build failure with old binutils
authorTaehee Yoo <ap420073@gmail.com>
Sun, 15 Jan 2023 12:15:36 +0000 (12:15 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jan 2023 10:29:32 +0000 (18:29 +0800)
commitd6b7ec11062e116f44a504f73f16c97e1cc53bd0
tree547edc3a6f170a687ab746fe0d82339da5f9eafe
parent1eb468b3c7199cf7fe0c34ee37b95ae0e9bcc5fe
crypto: x86/aria-avx512 - 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-avx512 if the old binutils is used.
aria-avx512 requires GFNI, so it should not be allowed to build if the
old binutils is used.
The AS_AVX512 and AS_GFNI are added to the Kconfig to disable build
aria-avx512 if the old binutils is used.

Fixes: c970d42001f2 ("crypto: x86/aria - implement aria-avx512")
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/Kconfig