From: Domagoj Trsan Date: Mon, 17 Nov 2014 08:44:56 +0000 (+0100) Subject: staging: skein: fix sparse warnings related to shift operator X-Git-Tag: v5.15~16669^2~239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=337832b7919469db17d3ebf60e3875e6915cae75;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)); }