aes: fix endian warnings
diff mbox series

Message ID 20051222214734.GB16883@mipter.zuzino.mipt.ru
State New, archived
Headers show
Series
  • aes: fix endian warnings
Related show

Commit Message

Alexey Dobriyan Dec. 22, 2005, 9:47 p.m. UTC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

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


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

Patch
diff mbox series

--- 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;