Thread (2 messages) 2 messages, 2 authors, 2024-01-10

Re: [PATCH] md/raid1: Use blk_opf_t for read and write operations

From: Song Liu <song@kernel.org>
Date: 2024-01-10 00:22:30

On Sun, Jan 7, 2024 at 4:12 PM Bart Van Assche [off-list ref] wrote:
Use the type blk_opf_t for read and write operations instead of int. This
patch does not affect the generated code but fixes the following sparse
warning:

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

Cc: Song Liu <song@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Fixes: 3c5e514db58f ("md/raid1: Use the new blk_opf_t type")
Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/oe-kbuild-all/202401080657.UjFnvQgX-lkp@intel.com/ (local)
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Applied to md-6.8.

Thanks,
Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help