Commit fcf5d2dc authored by Corentin Labbe's avatar Corentin Labbe Committed by Herbert Xu

crypto: sun8i-ss - fix comparison of integer expressions of different signedness

This patch fixes the warning:
warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
Signed-off-by: default avatarCorentin Labbe <clabbe@baylibre.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 25d85ffc
...@@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = { ...@@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = {
static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v) static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v)
{ {
struct sun8i_ss_dev *ss = seq->private; struct sun8i_ss_dev *ss = seq->private;
int i; unsigned int i;
for (i = 0; i < MAXFLOW; i++) for (i = 0; i < MAXFLOW; i++)
seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req); seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req);
...@@ -560,7 +560,8 @@ static void sun8i_ss_pm_exit(struct sun8i_ss_dev *ss) ...@@ -560,7 +560,8 @@ static void sun8i_ss_pm_exit(struct sun8i_ss_dev *ss)
static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)
{ {
int ss_method, err, id, i; int ss_method, err, id;
unsigned int i;
for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
ss_algs[i].ss = ss; ss_algs[i].ss = ss;
...@@ -631,7 +632,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) ...@@ -631,7 +632,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss)
static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss) static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss)
{ {
int i; unsigned int i;
for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { for (i = 0; i < ARRAY_SIZE(ss_algs); i++) {
if (!ss_algs[i].ss) if (!ss_algs[i].ss)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment