diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-02-10 10:39:18 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-10 10:39:53 -0700 |
commit | 11c94444074f40b479a05f6657d935204e992f2e (patch) | |
tree | e92982b378b7f5362fcc99dfea523ac664e894c7 | |
parent | 18741986a4b1dc4b1f171634c4191abc3b0fa023 (diff) | |
download | linux-stable-11c94444074f40b479a05f6657d935204e992f2e.tar.gz linux-stable-11c94444074f40b479a05f6657d935204e992f2e.tar.bz2 linux-stable-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>
-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; |