All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: skein: fix sparse warnings related to shift operator
@ 2014-11-17  8:44 Domagoj Trsan
  0 siblings, 0 replies; only message in thread
From: Domagoj Trsan @ 2014-11-17  8:44 UTC (permalink / raw)
  To: gregkh, jason, jake, antonysaraev, eric.rost, devel,
	linux-kernel, driverdev-devel
  Cc: Domagoj Trsan

Fix warnings:
drivers/staging/skein/skein_base.h:89:30: warning: shift too big (50) for type int
...
drivers/staging/skein/skein_base.h:89:30: warning: shift too big (39)for type int
drivers/staging/skein/skein_base.h:89:19: warning: too many warnings

Signed-off-by: Domagoj Trsan <domagoj.trsan@gmail.com>
---
 drivers/staging/skein/skein_base.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/skein/skein_base.h b/drivers/staging/skein/skein_base.h
index 993b951..3c7f8ad 100644
--- a/drivers/staging/skein/skein_base.h
+++ b/drivers/staging/skein/skein_base.h
@@ -84,7 +84,7 @@ struct skein_1024_ctx { /* 1024-bit Skein hash context structure */
 	u8 b[SKEIN_1024_BLOCK_BYTES];	/* partial block buf (8-byte aligned) */
 };
 
-static inline int rotl_64(int x, int N)
+static inline u64 rotl_64(u64 x, u8 N)
 {
 	return (x << N) | (x >> (64 - N));
 }
-- 
2.1.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-17  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  8:44 [PATCH] staging: skein: fix sparse warnings related to shift operator Domagoj Trsan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.