diff options
-rw-r--r-- | arch/x86/crypto/Makefile | 3 | ||||
-rw-r--r-- | arch/x86/crypto/aesni-intel_glue.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 84ee1e14f3b6..188b993e55c7 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile | |||
@@ -75,7 +75,8 @@ ifeq ($(avx2_supported),yes) | |||
75 | serpent-avx2-y := serpent-avx2-asm_64.o serpent_avx2_glue.o | 75 | serpent-avx2-y := serpent-avx2-asm_64.o serpent_avx2_glue.o |
76 | endif | 76 | endif |
77 | 77 | ||
78 | aesni-intel-y := aesni-intel_asm.o aesni-intel_avx.o aesni-intel_glue.o fpu.o | 78 | aesni-intel-y := aesni-intel_asm.o aesni-intel_glue.o fpu.o |
79 | aesni-intel-$(CONFIG_64BIT) += aesni-intel_avx.o | ||
79 | ghash-clmulni-intel-y := ghash-clmulni-intel_asm.o ghash-clmulni-intel_glue.o | 80 | ghash-clmulni-intel-y := ghash-clmulni-intel_asm.o ghash-clmulni-intel_glue.o |
80 | sha1-ssse3-y := sha1_ssse3_asm.o sha1_ssse3_glue.o | 81 | sha1-ssse3-y := sha1_ssse3_asm.o sha1_ssse3_glue.o |
81 | crc32c-intel-y := crc32c-intel_glue.o | 82 | crc32c-intel-y := crc32c-intel_glue.o |
diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 3ae311dd684e..948ad0e77741 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c | |||
@@ -1473,6 +1473,7 @@ static int __init aesni_init(void) | |||
1473 | 1473 | ||
1474 | if (!x86_match_cpu(aesni_cpu_id)) | 1474 | if (!x86_match_cpu(aesni_cpu_id)) |
1475 | return -ENODEV; | 1475 | return -ENODEV; |
1476 | #ifdef CONFIG_X86_64 | ||
1476 | #ifdef CONFIG_AS_AVX2 | 1477 | #ifdef CONFIG_AS_AVX2 |
1477 | if (boot_cpu_has(X86_FEATURE_AVX2)) { | 1478 | if (boot_cpu_has(X86_FEATURE_AVX2)) { |
1478 | pr_info("AVX2 version of gcm_enc/dec engaged.\n"); | 1479 | pr_info("AVX2 version of gcm_enc/dec engaged.\n"); |
@@ -1492,6 +1493,7 @@ static int __init aesni_init(void) | |||
1492 | aesni_gcm_enc_tfm = aesni_gcm_enc; | 1493 | aesni_gcm_enc_tfm = aesni_gcm_enc; |
1493 | aesni_gcm_dec_tfm = aesni_gcm_dec; | 1494 | aesni_gcm_dec_tfm = aesni_gcm_dec; |
1494 | } | 1495 | } |
1496 | #endif | ||
1495 | 1497 | ||
1496 | err = crypto_fpu_init(); | 1498 | err = crypto_fpu_init(); |
1497 | if (err) | 1499 | if (err) |