aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2014-02-10 10:39:18 -0700
committerJens Axboe <axboe@fb.com>2014-02-10 10:39:53 -0700
commit11c94444074f40b479a05f6657d935204e992f2e (patch)
treee92982b378b7f5362fcc99dfea523ac664e894c7 /block
parent18741986a4b1dc4b1f171634c4191abc3b0fa023 (diff)
block: Fix type mismatch in ssize_t_blk_mq_tag_sysfs_show
cppcheck detected following format string mismatch. [blk-mq-tag.c:201]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. Change "cpu" from int to unsigned int, because the cpu never become minus value. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq-tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index d64a02fb1f7..4025050320b 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -182,7 +182,7 @@ void blk_mq_free_tags(struct blk_mq_tags *tags)
ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page)
{
char *orig_page = page;
- int cpu;
+ unsigned int cpu;
if (!tags)
return 0;