Skip to content

Commit

Permalink
io_uring: Add missing inline to io_uring_cmd_import_fixed() dummy
Browse files Browse the repository at this point in the history
If CONFIG_IO_URING is not set:

    include/linux/io_uring.h:65:12: error: ‘io_uring_cmd_import_fixed’ defined but not used [-Werror=unused-function]
       65 | static int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
	  |            ^~~~~~~~~~~~~~~~~~~~~~~~~

Fix this by adding the missing "inline" keyword.

Fixes: a9216fa ("io_uring: add io_uring_cmd_import_fixed")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/7404b4a696f64e33e5ef3c5bd3754d4f26d13e50.1664887093.git.geert+renesas@glider.be
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Geert Uytterhoeven authored and Jens Axboe committed Oct 4, 2022
1 parent 23fd22e commit 0e0abad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/io_uring.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline void io_uring_free(struct task_struct *tsk)
__io_uring_free(tsk);
}
#else
static int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
struct iov_iter *iter, void *ioucmd)
{
return -EOPNOTSUPP;
Expand Down

0 comments on commit 0e0abad

Please sign in to comment.