Skip to content

Commit aa0274d

Browse files
committed
Merge tag 'io_uring-6.13-20241207' of git://git.kernel.dk/linux
Pull io_uring fix from Jens Axboe: "A single fix for a parameter type which affects 32-bit" * tag 'io_uring-6.13-20241207' of git://git.kernel.dk/linux: io_uring: Change res2 parameter type in io_uring_cmd_done
2 parents a6db2a5 + a07d2d7 commit aa0274d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/linux/io_uring/cmd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
4343
* Note: the caller should never hard code @issue_flags and is only allowed
4444
* to pass the mask provided by the core io_uring code.
4545
*/
46-
void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret, ssize_t res2,
46+
void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret, u64 res2,
4747
unsigned issue_flags);
4848

4949
void __io_uring_cmd_do_in_task(struct io_uring_cmd *ioucmd,
@@ -67,7 +67,7 @@ static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
6767
return -EOPNOTSUPP;
6868
}
6969
static inline void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret,
70-
ssize_t ret2, unsigned issue_flags)
70+
u64 ret2, unsigned issue_flags)
7171
{
7272
}
7373
static inline void __io_uring_cmd_do_in_task(struct io_uring_cmd *ioucmd,

io_uring/uring_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static inline void io_req_set_cqe32_extra(struct io_kiocb *req,
151151
* Called by consumers of io_uring_cmd, if they originally returned
152152
* -EIOCBQUEUED upon receiving the command.
153153
*/
154-
void io_uring_cmd_done(struct io_uring_cmd *ioucmd, ssize_t ret, ssize_t res2,
154+
void io_uring_cmd_done(struct io_uring_cmd *ioucmd, ssize_t ret, u64 res2,
155155
unsigned issue_flags)
156156
{
157157
struct io_kiocb *req = cmd_to_io_kiocb(ioucmd);

0 commit comments

Comments
 (0)