Skip to content

Commit 8133a3f

Browse files
committed
powerpc/crypto: Fix aes-gcm-p10 build when VSX=n
When VSX is disabled, eg. microwatt_defconfig, the build fails with: In function ‘enable_kernel_vsx’, inlined from ‘vsx_begin’ at arch/powerpc/crypto/aes-gcm-p10-glue.c:68:2, inlined from ‘p10_aes_gcm_crypt.constprop’ at arch/powerpc/crypto/aes-gcm-p10-glue.c:244:2: ... arch/powerpc/include/asm/switch_to.h:86:9: note: in expansion of macro ‘BUILD_BUG’ 86 | BUILD_BUG(); | ^~~~~~~~~ Fix it by making the p10-aes-gcm code depend on VSX. Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/20230515124731.122962-1-mpe%40ellerman.id.au
1 parent 35a4b8c commit 8133a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/crypto/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ config CRYPTO_AES_PPC_SPE
9696

9797
config CRYPTO_AES_GCM_P10
9898
tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
99-
depends on PPC64 && CPU_LITTLE_ENDIAN
99+
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
100100
select CRYPTO_LIB_AES
101101
select CRYPTO_ALGAPI
102102
select CRYPTO_AEAD

0 commit comments

Comments
 (0)