Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec49fdbd authored by David Woodhouse's avatar David Woodhouse Committed by Pekka Enberg
Browse files

crypto: Use ARCH_KMALLOC_MINALIGN for CRYPTO_MINALIGN now that it's exposed

parent 4581ced3
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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)))