]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: Fix the data type of an r10_sync_page_io() argument
authorBart Van Assche <bvanassche@acm.org>
Wed, 10 Aug 2022 18:20:12 +0000 (11:20 -0700)
committerSong Liu <song@kernel.org>
Wed, 24 Aug 2022 17:26:35 +0000 (10:26 -0700)
commit7ccc0934d6ef00110835f5029037289ecb0a69de
tree5798c8dbac9f7c47c7cfa43f8121960ab40b0cbc
parentf6b8006d135e4fa97fbd515371543b3f3573fa4f
md/raid10: Fix the data type of an r10_sync_page_io() argument

Fix the following sparse warning:

drivers/md/raid10.c:2647:60: sparse: sparse: incorrect type in argument 5 (different base types) @@     expected restricted blk_opf_t [usertype] opf @@     got int rw @@

This patch does not change any functionality since REQ_OP_READ = READ = 0
and since REQ_OP_WRITE = WRITE = 1.

Cc: Rong A Chen <rong.a.chen@intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Fixes: 7989bb45ee48 ("md/core: Combine two sync_page_io() arguments")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid10.c