Skip to content

Commit

Permalink
crypto: vmx - VMX crypto should depend on CONFIG_VSX
Browse files Browse the repository at this point in the history
This code uses FP (floating point), Altivec and VSX (Vector-Scalar
Extension). It can just depend on CONFIG_VSX though, because that
already depends on FP and Altivec.

Otherwise we get lots of link errors such as:

  drivers/built-in.o: In function `.p8_aes_setkey':
  aes.c:(.text+0x2d325c): undefined reference to `.enable_kernel_altivec'
  aes.c:(.text+0x2d326c): undefined reference to `.enable_kernel_vsx'

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Michael Ellerman authored and Herbert Xu committed Sep 10, 2015
1 parent 71c6da8 commit f1ab428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ config CRYPTO_DEV_QCE

config CRYPTO_DEV_VMX
bool "Support for VMX cryptographic acceleration instructions"
depends on PPC64
depends on PPC64 && VSX
help
Support for VMX cryptographic acceleration instructions.

Expand Down

0 comments on commit f1ab428

Please sign in to comment.