]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: api - Add CRYPTO_MINALIGN_ATTR to struct crypto_alg
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jun 2015 06:00:48 +0000 (14:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Jun 2015 06:16:28 +0000 (14:16 +0800)
commitb6d2a7d962283a9faaf995fed292f0887aa35973
treee3437271f86671725914280604f14aea19c4238e
parent9716ad2ebd540637939de4db2065fa8dd20b63ff
crypto: api - Add CRYPTO_MINALIGN_ATTR to struct crypto_alg

The struct crypto_alg is embedded into various type-specific structs
such as aead_alg.  This is then used as part of instances such as
struct aead_instance.  It is also embedded into the generic struct
crypto_instance.  In order to ensure that struct aead_instance can
be converted to struct crypto_instance when necessary, we need to
ensure that crypto_alg is aligned properly.

This patch adds an alignment attribute to struct crypto_alg to
ensure this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/crypto.h