diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-02-10 18:39:18 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-10 18:39:53 +0100 |
commit | 11c94444074f40b479a05f6657d935204e992f2e (patch) | |
tree | e92982b378b7f5362fcc99dfea523ac664e894c7 /block | |
parent | blk-mq: rework flush sequencing logic (diff) | |
download | linux-11c94444074f40b479a05f6657d935204e992f2e.tar.xz linux-11c94444074f40b479a05f6657d935204e992f2e.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index d64a02fb1f73..4025050320b9 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; |