Skip to content

Commit

Permalink
Merge branch 'io_uring-6.4' into for-next
Browse files Browse the repository at this point in the history
* io_uring-6.4:
  io_uring: make io_uring_sqe_cmd() unconditionally available
  • Loading branch information
axboe committed May 8, 2023
2 parents ba0ad6e + 5d371b2 commit b2e48bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/linux/io_uring.h
Expand Up @@ -36,6 +36,11 @@ struct io_uring_cmd {
u8 pdu[32]; /* available inline for free use */
};

static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
{
return sqe->cmd;
}

#if defined(CONFIG_IO_URING)
int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
struct iov_iter *iter, void *ioucmd);
Expand Down Expand Up @@ -66,11 +71,6 @@ static inline void io_uring_free(struct task_struct *tsk)
if (tsk->io_uring)
__io_uring_free(tsk);
}

static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
{
return sqe->cmd;
}
#else
static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
struct iov_iter *iter, void *ioucmd)
Expand Down

0 comments on commit b2e48bd

Please sign in to comment.