aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Sander Mateos <[email protected]>2025-05-20 19:33:36 +0000
committerJens Axboe <[email protected]>2025-05-20 20:36:41 +0000
commitf1774d9d4e104639a9122bde3b1fe58a0c0dcde7 (patch)
tree0faf7c3294902d857963f3e3015ed8bc36157462
parentio_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo() (diff)
downloadkernel-f1774d9d4e104639a9122bde3b1fe58a0c0dcde7.tar.gz
kernel-f1774d9d4e104639a9122bde3b1fe58a0c0dcde7.zip
io_uring/cmd: axe duplicate io_uring_cmd_import_fixed_vec() declaration
io_uring_cmd_import_fixed_vec() is declared in both include/linux/io_uring/cmd.h and io_uring/uring_cmd.h. The declarations are identical (if redundant) for CONFIG_IO_URING=y. But if CONFIG_IO_URING=N, include/linux/io_uring/cmd.h declares the function as static inline while io_uring/uring_cmd.h declares it as extern. This causes linker errors if the declaration in io_uring/uring_cmd.h is used. Remove the declaration in io_uring/uring_cmd.h to avoid linker errors and prevent the declarations getting out of sync. Signed-off-by: Caleb Sander Mateos <[email protected]> Fixes: ef4902752972 ("io_uring/cmd: introduce io_uring_cmd_import_fixed_vec") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--io_uring/uring_cmd.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/io_uring/uring_cmd.h b/io_uring/uring_cmd.h
index b04686b6b5d2..e6a5142c890e 100644
--- a/io_uring/uring_cmd.h
+++ b/io_uring/uring_cmd.h
@@ -17,9 +17,3 @@ bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
struct io_uring_task *tctx, bool cancel_all);
void io_cmd_cache_free(const void *entry);
-
-int io_uring_cmd_import_fixed_vec(struct io_uring_cmd *ioucmd,
- const struct iovec __user *uvec,
- size_t uvec_segs,
- int ddir, struct iov_iter *iter,
- unsigned issue_flags);