Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1350442 > unrolled thread

[PATCH 11/13] rxrpc: rxkad: Casts are needed when comparing be32 values

Started byDavid Howells <dhowells@redhat.com>
First post2016-03-04 17:40 +0100
Last post2016-03-04 17:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 11/13] rxrpc: rxkad: Casts are needed when comparing be32  values David Howells <dhowells@redhat.com> - 2016-03-04 17:40 +0100

#1350442 — [PATCH 11/13] rxrpc: rxkad: Casts are needed when comparing be32 values

FromDavid Howells <dhowells@redhat.com>
Date2016-03-04 17:40 +0100
Subject[PATCH 11/13] rxrpc: rxkad: Casts are needed when comparing be32 values
Message-ID<r90VJ-14h-45@gated-at.bofh.it>
Forced casts are needed to avoid sparse warning when directly comparing
be32 values.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 net/rxrpc/rxkad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c
index ca746f382517..3106a0c4960b 100644
--- a/net/rxrpc/rxkad.c
+++ b/net/rxrpc/rxkad.c
@@ -142,7 +142,7 @@ static void rxkad_prime_packet_security(struct rxrpc_connection *conn)
 	crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
 
 	memcpy(&conn->csum_iv, &tmpbuf.x[2], sizeof(conn->csum_iv));
-	ASSERTCMP(conn->csum_iv.n[0], ==, tmpbuf.x[2]);
+	ASSERTCMP((u32 __force)conn->csum_iv.n[0], ==, (u32 __force)tmpbuf.x[2]);
 
 	_leave("");
 }

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web