diff options
author | Coly Li <colyli@suse.de> | 2018-08-11 13:19:44 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-11 15:46:41 -0600 |
commit | 6f10f7d1b02b1bbc305f88d7696445dd38b13881 (patch) | |
tree | 180832c7da865145a7528e81d7145f98fd4a29db /drivers/md/bcache/debug.c | |
parent | b86d865cb1cae1e61527ea0b8977078bbf694328 (diff) |
bcache: style fix to replace 'unsigned' by 'unsigned int'
This patch fixes warning reported by checkpatch.pl by replacing 'unsigned'
with 'unsigned int'.
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/debug.c')
-rw-r--r-- | drivers/md/bcache/debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index 12034c07257b..0caad145902b 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c @@ -69,7 +69,7 @@ void bch_btree_verify(struct btree *b) sorted->start, (void *) bset_bkey_last(inmemory) - (void *) inmemory->start)) { struct bset *i; - unsigned j; + unsigned int j; console_lock(); @@ -80,7 +80,7 @@ void bch_btree_verify(struct btree *b) bch_dump_bset(&v->keys, sorted, 0); for_each_written_bset(b, ondisk, i) { - unsigned block = ((void *) i - (void *) ondisk) / + unsigned int block = ((void *) i - (void *) ondisk) / block_bytes(b->c); printk(KERN_ERR "*** on disk block %u:\n", block); @@ -176,7 +176,7 @@ static ssize_t bch_dump_read(struct file *file, char __user *buf, while (size) { struct keybuf_key *w; - unsigned bytes = min(i->bytes, size); + unsigned int bytes = min(i->bytes, size); int err = copy_to_user(buf, i->buf, bytes); if (err) |