crypto: talitos - eliminate unneeded 'done' functions at build time
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 17 Jun 2019 21:14:45 +0000 (21:14 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 Jun 2019 06:28:01 +0000 (14:28 +0800)
commitc8c74647b2945e3522b77b659917766d7e1c6ed9
tree487f1474d24c98253704f0c46f8fa4bda3e31576
parent8d3bcb9900ca5a193088c1f2d20c92865482368b
crypto: talitos - eliminate unneeded 'done' functions at build time

When building for SEC1 only, talitos2_done functions are unneeded
and should go away.

For this, use has_ftr_sec1() which will always return true when only
SEC1 support is being built, allowing GCC to drop TALITOS2 functions.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c