* [patch 3/4] crypto/blowfish.c: fix sparse warnings
@ 2005-03-19 13:18 domen
2005-03-20 11:20 ` [patch 3/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/blowfish.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -puN crypto/blowfish.c~sparse-crypto_blowfish crypto/blowfish.c
--- kj/crypto/blowfish.c~sparse-crypto_blowfish 2005-03-18 20:05:36.000000000 +0100
+++ kj-domen/crypto/blowfish.c 2005-03-18 20:05:36.000000000 +0100
@@ -349,8 +349,8 @@ static void encrypt_block(struct bf_ctx
static void bf_encrypt(void *ctx, u8 *dst, const u8 *src)
{
- const u32 *in_blk = (const u32 *)src;
- u32 *const out_blk = (u32 *)dst;
+ const __be32 *in_blk = (const __be32 *)src;
+ __be32 *const out_blk = (__be32 *)dst;
u32 in32[2], out32[2];
in32[0] = be32_to_cpu(in_blk[0]);
@@ -362,8 +362,8 @@ static void bf_encrypt(void *ctx, u8 *ds
static void bf_decrypt(void *ctx, u8 *dst, const u8 *src)
{
- const u32 *in_blk = (const u32 *)src;
- u32 *const out_blk = (u32 *)dst;
+ const __be32 *in_blk = (const __be32 *)src;
+ __be32 *const out_blk = (__be32 *)dst;
const u32 *P = ((struct bf_ctx *)ctx)->p;
const u32 *S = ((struct bf_ctx *)ctx)->s;
u32 yl = be32_to_cpu(in_blk[0]);
_
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch 3/4 with proper signed-off] crypto/blowfish.c: fix sparse warnings
2005-03-19 13:18 [patch 3/4] crypto/blowfish.c: fix sparse warnings domen
@ 2005-03-20 11:20 ` Domen Puncer
0 siblings, 0 replies; 2+ messages in thread
From: Domen Puncer @ 2005-03-20 11:20 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/blowfish.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -puN crypto/blowfish.c~sparse-crypto_blowfish crypto/blowfish.c
--- kj/crypto/blowfish.c~sparse-crypto_blowfish 2005-03-20 12:11:35.000000000 +0100
+++ kj-domen/crypto/blowfish.c 2005-03-20 12:11:35.000000000 +0100
@@ -349,8 +349,8 @@ static void encrypt_block(struct bf_ctx
static void bf_encrypt(void *ctx, u8 *dst, const u8 *src)
{
- const u32 *in_blk = (const u32 *)src;
- u32 *const out_blk = (u32 *)dst;
+ const __be32 *in_blk = (const __be32 *)src;
+ __be32 *const out_blk = (__be32 *)dst;
u32 in32[2], out32[2];
in32[0] = be32_to_cpu(in_blk[0]);
@@ -362,8 +362,8 @@ static void bf_encrypt(void *ctx, u8 *ds
static void bf_decrypt(void *ctx, u8 *dst, const u8 *src)
{
- const u32 *in_blk = (const u32 *)src;
- u32 *const out_blk = (u32 *)dst;
+ const __be32 *in_blk = (const __be32 *)src;
+ __be32 *const out_blk = (__be32 *)dst;
const u32 *P = ((struct bf_ctx *)ctx)->p;
const u32 *S = ((struct bf_ctx *)ctx)->s;
u32 yl = be32_to_cpu(in_blk[0]);
_
^ 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 3/4] crypto/blowfish.c: fix sparse warnings domen
2005-03-20 11:20 ` [patch 3/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