]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
io_uring: remove io_ctx_cqe32() helper
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Aug 2025 20:01:46 +0000 (14:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Aug 2025 17:41:12 +0000 (11:41 -0600)
It's pretty pointless and only used for the tracing helper, get rid
of it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
include/trace/events/io_uring.h

index 9c6c548f43f59081577242b2e4fd58eed39378dc..d1e25f3fe0b3af2bbfeda2bc5d1ec9b1afbe04d0 100644 (file)
@@ -740,10 +740,4 @@ struct io_overflow_cqe {
        struct list_head list;
        struct io_uring_cqe cqe;
 };
-
-static inline bool io_ctx_cqe32(struct io_ring_ctx *ctx)
-{
-       return ctx->flags & IORING_SETUP_CQE32;
-}
-
 #endif
index 178ab6f611bef082ce2a3169758fb25cfafce16b..6a970625a3ea46df89fc28a369b7d1908a2f532d 100644 (file)
@@ -340,8 +340,8 @@ TP_PROTO(struct io_ring_ctx *ctx, void *req, struct io_uring_cqe *cqe),
                __entry->user_data      = cqe->user_data;
                __entry->res            = cqe->res;
                __entry->cflags         = cqe->flags;
-               __entry->extra1         = io_ctx_cqe32(ctx) ? cqe->big_cqe[0] : 0;
-               __entry->extra2         = io_ctx_cqe32(ctx) ? cqe->big_cqe[1] : 0;
+               __entry->extra1         = ctx->flags & IORING_SETUP_CQE32 ? cqe->big_cqe[0] : 0;
+               __entry->extra2         = ctx->flags & IORING_SETUP_CQE32 ? cqe->big_cqe[1] : 0;
        ),
 
        TP_printk("ring %p, req %p, user_data 0x%llx, result %d, cflags 0x%x "