diff options
-rw-r--r-- | crypto/shash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 929058a68561..47c713954bf3 100644 --- a/crypto/shash.c +++ b/crypto/shash.c | |||
@@ -67,7 +67,8 @@ EXPORT_SYMBOL_GPL(crypto_shash_setkey); | |||
67 | static inline unsigned int shash_align_buffer_size(unsigned len, | 67 | static inline unsigned int shash_align_buffer_size(unsigned len, |
68 | unsigned long mask) | 68 | unsigned long mask) |
69 | { | 69 | { |
70 | return len + (mask & ~(__alignof__(u8 __attribute__ ((aligned))) - 1)); | 70 | typedef u8 __attribute__ ((aligned)) u8_aligned; |
71 | return len + (mask & ~(__alignof__(u8_aligned) - 1)); | ||
71 | } | 72 | } |
72 | 73 | ||
73 | static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, | 74 | static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, |