[dm-devel] [PATCH -next] dm zoned: fix unused but set variable warnings

2020-07-03 Thread Wei Yongjun
:24: warning: variable nr_unmap_rnd set but not used [-Wunused-but-set-variable] 504 | unsigned int p_unmap, nr_unmap_rnd = 0, nr_rnd = 0; |^~~~ Fixes: f97809aec589 ("dm zoned: per-device reclaim") Signed-off-by: Wei Yongjun --- drivers/m

[dm-devel] [PATCH -next] dm: remove unused variable 'md'

2020-07-03 Thread Wei Yongjun
o avoid build warning. Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/md/dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index a8d83d76fa9f..a02842afe358 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1293,7 +1293,6 @@ static blk_q

[dm-devel] [PATCH -next] dm writecache: fix return value check in writecache_ctr()

2018-06-01 Thread Wei Yongjun
Function dm_io_client_create() and dm_kcopyd_client_create() return ERR_PTR() not NULL in case of error. The NULL test in the return value check should be replaced with IS_ERR() Fixes: 2105231db61b ("dm: add writecache target") Signed-off-by: Wei Yongjun --- drivers/md/dm-writeca

[dm-devel] [PATCH -next] dm verity: make some functions static

2018-03-29 Thread Wei Yongjun
Fixes the following sparse warnings: drivers/md/dm-verity-target.c:375:6: warning: symbol 'verity_for_io_block' was not declared. Should it be static? drivers/md/dm-verity-target.c:403:14: warning: symbol 'verity_calc_buffs_for_bv' was not declared. Should it be static? Signed-off-by: Wei

[dm-devel] [PATCH -next] dm crypt: fix error return code in crypt_ctr()

2018-01-18 Thread Wei Yongjun
Fix to return error code -ENOMEM from the mempool_create_kmalloc_pool() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongj...@huawei.com> --- drivers/md/dm-crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-cry

[dm-devel] [PATCH -next] dm raid: make local symbol raid_sets static

2018-01-02 Thread Wei Yongjun
Fixes the following sparse warning: drivers/md/dm-raid.c:33:1: warning: symbol 'raid_sets' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongj...@huawei.com> --- drivers/md/dm-raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[dm-devel] [PATCH -next] dm flakey: fix error return code in flakey_ctr()

2016-08-08 Thread Wei Yongjun
Fix to return error code -EINVAL instead of 0(r is overwrote to 0 by dm_read_arg() call), as done elsewhere in this function. Fixes: e80d1c805a3b ("dm: do not override error code returned from dm_get_device()") Signed-off-by: Wei Yongjun <weiyj...@gmail.com> --- drivers/md/dm-fl