]> Gentwo Git Trees - linux/.git/commit
io_uring/uring_cmd: correct io_uring_cmd_done() ret type
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 2 Sep 2025 01:26:07 +0000 (19:26 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Sep 2025 23:34:36 +0000 (17:34 -0600)
commitdd386b0d5e61556927189cd7b59a628d22cb6851
tree0d2241f6c518a558427cf1f5b43bafcbe4723922
parentdf3a7762ee24ba6a33d4215244e329ca300f4819
io_uring/uring_cmd: correct io_uring_cmd_done() ret type

io_uring_cmd_done() takes the result code for the CQE as a ssize_t ret
argument. However, the CQE res field is a s32 value, as is the argument
to io_req_set_res(). To clarify that only s32 values can be faithfully
represented without truncation, change io_uring_cmd_done()'s ret
argument type to s32.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250902012609.1513123-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring/cmd.h
io_uring/uring_cmd.c