Skip to contentSkip to conversation

arch/i386/crypto/aes.c: fix sparse warnings

PATCH In review [email protected] 1 participant 2 messages Mar 19, 2005 – Mar 20, 2005 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 10/10 arch/i386/crypto/aes.c: fix sparse warnings

---

 kj-domen/arch/i386/crypto/aes.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/crypto/aes.c renamed from arch/i386/crypto/aes.c~sparse-arch_i386_crypto_aes +1 -1
diff -puN arch/i386/crypto/aes.c~sparse-arch_i386_crypto_aes 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))
 

_

#1 lore raw

---

 kj-domen/arch/i386/crypto/aes.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/crypto/aes.c renamed from arch/i386/crypto/aes.c~sparse-arch_i386_crypto_aes +1 -1
diff -puN arch/i386/crypto/aes.c~sparse-arch_i386_crypto_aes 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))
 

_