Skip to content

Commit 0e0abad

Browse files
geertuaxboe
authored andcommitted
io_uring: Add missing inline to io_uring_cmd_import_fixed() dummy
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 <[email protected]> Link: https://lore.kernel.org/r/7404b4a696f64e33e5ef3c5bd3754d4f26d13e50.1664887093.git.geert+renesas@glider.be Signed-off-by: Jens Axboe <[email protected]>
1 parent 23fd22e commit 0e0abad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/io_uring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline void io_uring_free(struct task_struct *tsk)
6262
__io_uring_free(tsk);
6363
}
6464
#else
65-
static int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
65+
static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
6666
struct iov_iter *iter, void *ioucmd)
6767
{
6868
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)