Message ID | 20230508070825.3659621-1-arnd@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | io_uring: add dummy io_uring_sqe_cmd() helper | expand |
On Mon, May 08, 2023 at 09:08:18AM +0200, Arnd Bergmann wrote:
> Add a dummy function like the other interfaces for this configuration.
Why do we need a separate dummy? The structure is unconditionally
defined, so we can just unconditionally define the helper.
On 5/8/23 8:40 AM, Christoph Hellwig wrote: > On Mon, May 08, 2023 at 09:08:18AM +0200, Arnd Bergmann wrote: >> Add a dummy function like the other interfaces for this configuration. > > Why do we need a separate dummy? The structure is unconditionally > defined, so we can just unconditionally define the helper. Yeah, no reason for a special one. I'll send one out.
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 3399d979ee1c..ec1dbd9e2599 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -102,6 +102,10 @@ static inline const char *io_uring_get_opcode(u8 opcode) { return ""; } +static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe) +{ + return NULL; +} #endif #endif