From: Domen Puncer Date: Sat, 25 Jun 2005 21:58:46 +0000 (-0700) Subject: [PATCH] arch/i386/crypto/aes.c: fix sparse warnings X-Git-Tag: v2.6.13-rc1~68^2~65 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=40086ea17e8cf12112438b3a855f44b26f7cb385;p=linux-2.6-omap-h63xx.git [PATCH] arch/i386/crypto/aes.c: fix sparse warnings Signed-off-by: Alexey Dobriyan Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/crypto/aes.c b/arch/i386/crypto/aes.c index 1019430fc1f..88ee85c3b43 100644 --- a/arch/i386/crypto/aes.c +++ b/arch/i386/crypto/aes.c @@ -59,7 +59,7 @@ struct aes_ctx { }; #define WPOLY 0x011b -#define u32_in(x) le32_to_cpu(*(const u32 *)(x)) +#define u32_in(x) le32_to_cpup((const __le32 *)(x)) #define bytes2word(b0, b1, b2, b3) \ (((u32)(b3) << 24) | ((u32)(b2) << 16) | ((u32)(b1) << 8) | (b0))