Skip to content

Commit

Permalink
crypto: Use ARCH_KMALLOC_MINALIGN for CRYPTO_MINALIGN now that it's e…
Browse files Browse the repository at this point in the history
…xposed

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
  • Loading branch information
David Woodhouse authored and Pekka Enberg committed May 19, 2010
1 parent 4581ced commit ec49fdb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,7 @@
* as arm where pointers are 32-bit aligned but there are data types such as
* u64 which require 64-bit alignment.
*/
#if defined(ARCH_KMALLOC_MINALIGN)
#define CRYPTO_MINALIGN ARCH_KMALLOC_MINALIGN
#elif defined(ARCH_SLAB_MINALIGN)
#define CRYPTO_MINALIGN ARCH_SLAB_MINALIGN
#else
#define CRYPTO_MINALIGN __alignof__(unsigned long long)
#endif

#define CRYPTO_MINALIGN_ATTR __attribute__ ((__aligned__(CRYPTO_MINALIGN)))

Expand Down

0 comments on commit ec49fdb

Please sign in to comment.