summaryrefslogtreecommitdiff
path: root/drivers/staging/skein
diff options
context:
space:
mode:
authorDomagoj Trsan <domagoj.trsan@gmail.com>2014-11-17 09:44:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-22 10:53:09 -0800
commit337832b7919469db17d3ebf60e3875e6915cae75 (patch)
treed73bfac0c3a178eb4bc9d80df6a82f4c7590b9c8 /drivers/staging/skein
parent9d9b211fcf441f813a255534786539a1aeae4e14 (diff)
staging: skein: fix sparse warnings related to shift operator
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/skein')
-rw-r--r--drivers/staging/skein/skein_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/skein/skein_base.h b/drivers/staging/skein/skein_base.h
index 993b951172f6..3c7f8ad3627d 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));
}