[PATCH] aes: fix endian warnings

From: Alexey Dobriyan
Date: Thu Dec 22 2005 - 16:43:30 EST


Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

crypto/aes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/crypto/aes.c
+++ b/crypto/aes.c
@@ -73,8 +73,8 @@ byte(const u32 x, const unsigned n)
return x >> (n << 3);
}

-#define u32_in(x) le32_to_cpu(*(const u32 *)(x))
-#define u32_out(to, from) (*(u32 *)(to) = cpu_to_le32(from))
+#define u32_in(x) le32_to_cpu(*(const __le32 *)(x))
+#define u32_out(to, from) (*(__le32 *)(to) = cpu_to_le32(from))

struct aes_ctx {
int key_length;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/