* [patch 4/4] crypto/tea.c: fix sparse warnings
@ 2005-03-19 13:18 domen
2005-03-20 11:21 ` [patch 4/4 with proper signed-off] " Domen Puncer
0 siblings, 1 reply; 2+ messages in thread
From: domen @ 2005-03-19 13:18 UTC (permalink / raw)
To: herbert; +Cc: davem, linux-kernel, domen, adobriyan
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/crypto/tea.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN crypto/tea.c~sparse-crypto_tea crypto/tea.c
--- kj/crypto/tea.c~sparse-crypto_tea 2005-03-18 20:05:37.000000000 +0100
+++ kj-domen/crypto/tea.c 2005-03-18 20:05:37.000000000 +0100
@@ -31,8 +31,8 @@
#define XTEA_ROUNDS 32
#define XTEA_DELTA 0x9e3779b9
-#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_cpup((const __le32 *)(x))
+#define u32_out(to, from) (*(__le32 *)(to) = cpu_to_le32(from))
struct tea_ctx {
u32 KEY[4];
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 4/4 with proper signed-off] crypto/tea.c: fix sparse warnings
2005-03-19 13:18 [patch 4/4] crypto/tea.c: fix sparse warnings domen
@ 2005-03-20 11:21 ` Domen Puncer
0 siblings, 0 replies; 2+ messages in thread
From: Domen Puncer @ 2005-03-20 11:21 UTC (permalink / raw)
To: herbert; +Cc: davem, linux-kernel, adobriyan
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/crypto/tea.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN crypto/tea.c~sparse-crypto_tea crypto/tea.c
--- kj/crypto/tea.c~sparse-crypto_tea 2005-03-20 12:11:36.000000000 +0100
+++ kj-domen/crypto/tea.c 2005-03-20 12:11:36.000000000 +0100
@@ -31,8 +31,8 @@
#define XTEA_ROUNDS 32
#define XTEA_DELTA 0x9e3779b9
-#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_cpup((const __le32 *)(x))
+#define u32_out(to, from) (*(__le32 *)(to) = cpu_to_le32(from))
struct tea_ctx {
u32 KEY[4];
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-20 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19 13:18 [patch 4/4] crypto/tea.c: fix sparse warnings domen
2005-03-20 11:21 ` [patch 4/4 with proper signed-off] " Domen Puncer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox