]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: skein: fix sparse warnings related to shift operator
authorDomagoj Trsan <domagoj.trsan@gmail.com>
Mon, 17 Nov 2014 08:44:56 +0000 (09:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Nov 2014 18:53:09 +0000 (10:53 -0800)
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>
drivers/staging/skein/skein_base.h

index 993b951172f6ba38dddbfe2f315061e6267ddd3c..3c7f8ad3627d7e38e7c1697f51d837bdda75cbc6 100644 (file)
@@ -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));
 }