diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-02-10 12:39:18 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-10 12:39:53 -0500 |
commit | 11c94444074f40b479a05f6657d935204e992f2e (patch) | |
tree | e92982b378b7f5362fcc99dfea523ac664e894c7 /block | |
parent | 18741986a4b1dc4b1f171634c4191abc3b0fa023 (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.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) | |||
182 | ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page) | 182 | ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page) |
183 | { | 183 | { |
184 | char *orig_page = page; | 184 | char *orig_page = page; |
185 | int cpu; | 185 | unsigned int cpu; |
186 | 186 | ||
187 | if (!tags) | 187 | if (!tags) |
188 | return 0; | 188 | return 0; |