diff options
author | Min-Hua Chen <minhuadotchen@gmail.com> | 2024-09-22 13:41:29 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-09-24 22:31:04 +0300 |
commit | 17ea56b752b6ba58fdd1fcfd24f0fd2fa2b0ade2 (patch) | |
tree | dd15b930ecd6c1d01afee1f562a8533a8c7b0cf8 /io_uring | |
parent | 3a87e264290d71ec86a210ab3e8d23b715ad266d (diff) | |
download | linux-17ea56b752b6ba58fdd1fcfd24f0fd2fa2b0ade2.tar.xz |
io_uring: fix casts to io_req_flags_t
Apply __force cast to restricted io_req_flags_t type to fix
the following sparse warning:
io_uring/io_uring.c:2026:23: sparse: warning: cast to restricted io_req_flags_t
No functional changes intended.
Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Link: https://lore.kernel.org/r/20240922104132.157055-1-minhuadotchen@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index c406f5d4c248..b2736e3491b8 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2041,7 +2041,7 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req, req->opcode = opcode = READ_ONCE(sqe->opcode); /* same numerical values with corresponding REQ_F_*, safe to copy */ sqe_flags = READ_ONCE(sqe->flags); - req->flags = (io_req_flags_t) sqe_flags; + req->flags = (__force io_req_flags_t) sqe_flags; req->cqe.user_data = READ_ONCE(sqe->user_data); req->file = NULL; req->rsrc_node = NULL; |