mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
[CRYPTO] api: Set default CRYPTO_MINALIGN to unsigned long long
Thanks to David Miller for pointing out that the SLAB (or SLOB/SLUB) cache uses the alignment of unsigned long long if the architecture kmalloc/slab alignment macros are not defined. This patch changes the CRYPTO_MINALIGN so that it uses the same default value. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
38ed9ab23b
commit
6eb7228421
|
@ -90,13 +90,11 @@
|
||||||
#define CRYPTO_MINALIGN ARCH_KMALLOC_MINALIGN
|
#define CRYPTO_MINALIGN ARCH_KMALLOC_MINALIGN
|
||||||
#elif defined(ARCH_SLAB_MINALIGN)
|
#elif defined(ARCH_SLAB_MINALIGN)
|
||||||
#define CRYPTO_MINALIGN ARCH_SLAB_MINALIGN
|
#define CRYPTO_MINALIGN ARCH_SLAB_MINALIGN
|
||||||
|
#else
|
||||||
|
#define CRYPTO_MINALIGN __alignof__(unsigned long long)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CRYPTO_MINALIGN
|
|
||||||
#define CRYPTO_MINALIGN_ATTR __attribute__ ((__aligned__(CRYPTO_MINALIGN)))
|
#define CRYPTO_MINALIGN_ATTR __attribute__ ((__aligned__(CRYPTO_MINALIGN)))
|
||||||
#else
|
|
||||||
#define CRYPTO_MINALIGN_ATTR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct scatterlist;
|
struct scatterlist;
|
||||||
struct crypto_ablkcipher;
|
struct crypto_ablkcipher;
|
||||||
|
|
Loading…
Reference in a new issue