From 91dde0ba03508ca4630fef646f7d830deae38042 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 21 Jan 2026 08:03:21 -0400 Subject: [PATCH] MT#55283 use struct init Change-Id: I45ad350d461ee0f54279d33bc565c6119f5fe391 --- lib/uring.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/uring.c b/lib/uring.c index 965576c85..2866e4eb2 100644 --- a/lib/uring.c +++ b/lib/uring.c @@ -134,10 +134,12 @@ void uring_thread_init(void) { if (ret) die("io_uring init failed (%s)", strerror(-ret)); - uring_methods.sendmsg = __uring_sendmsg; - uring_methods.thread_loop = __uring_thread_loop; - uring_methods.__alloc_req = __uring_alloc; - uring_methods.free = __uring_free; + uring_methods = (struct uring_methods) { + .sendmsg = __uring_sendmsg, + .thread_loop = __uring_thread_loop, + .__alloc_req = __uring_alloc, + .free = __uring_free, + }; } void uring_thread_cleanup(void) {