OSDN Git Service

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)
commit265ad47a40da581be77172b4a8e1fb72b2bd914a
tree5798c8dbac9f7c47c7cfa43f8121960ab40b0cbc
parentc490a0b5a4f36da3918181a8acdc6991d967c5f3
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: 4ce4c73f662b ("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