This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
Unified · Split
| @@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = { · 413 unmodified lines | |||
| 414 | static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v) | 414 | static int sun8i_ss_debugfs_show(struct seq_file *seq, void *v) |
| 415 | { | 415 | { |
| 416 | struct sun8i_ss_dev *ss = seq->private; | 416 | struct sun8i_ss_dev *ss = seq->private; |
| 417 | int i; | 417 | unsigned int i; |
| 418 | 418 | ||
| 419 | for (i = 0; i < MAXFLOW; i++) | 419 | for (i = 0; i < MAXFLOW; i++) |
| 420 | seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req); | 420 | 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) · 139 unmodified lines | |||
| 560 | 560 | ||
| 561 | static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) | 561 | static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) |
| 562 | { | 562 | { |
| 563 | int ss_method, err, id, i; | 563 | int ss_method, err, id; |
| 564 | unsigned int i; | ||
| 564 | 565 | ||
| 565 | for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { | 566 | for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { |
| 566 | ss_algs[i].ss = ss; | 567 | ss_algs[i].ss = ss; |
| @@ -631,7 +632,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) · 64 unmodified lines | |||
| 631 | 632 | ||
| 632 | static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss) | 633 | static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss) |
| 633 | { | 634 | { |
| 634 | int i; | 635 | unsigned int i; |
| 635 | 636 | ||
| 636 | for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { | 637 | for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { |
| 637 | if (!ss_algs[i].ss) | 638 | if (!ss_algs[i].ss) |