[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1416213896-9094-1-git-send-email-domagoj.trsan@gmail.com>
Date: Mon, 17 Nov 2014 09:44:56 +0100
From: Domagoj Trsan <domagoj.trsan@...il.com>
To: gregkh@...uxfoundation.org, jason@...edaemon.net, jake@....net,
antonysaraev@...il.com, eric.rost@...abylon.net,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
driverdev-devel@...uxdriverproject.org
Cc: Domagoj Trsan <domagoj.trsan@...il.com>
Subject: [PATCH] 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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists