* [PATCH liburing] test/iopoll: Fix clang CI build failure
@ 2026-08-05 19:31 Gabriel Krisman Bertazi
0 siblings, 0 replies; only message in thread
From: Gabriel Krisman Bertazi @ 2026-08-05 19:31 UTC (permalink / raw)
To: axboe; +Cc: io-uring, Gabriel Krisman Bertazi
Clang CI builds in liburing repo do -Werror,-Wunused-but-set-global when
building with clang. commit c5eead26 ("test/iopoll: fix over-eager
no_hybrid check") left a lingering variable that was not used, and clang
got smart enough to find for it, causing the build to fail for every
commit ever since.
https://github.com/axboe/liburing/actions/runs/30404555586/job/90427017716
https://github.com/axboe/liburing/actions/runs/30404555586/job/90427017742
Fixes: c5eead26 ("test/iopoll: fix over-eager no_hybrid check")
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
---
test/iopoll.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/test/iopoll.c b/test/iopoll.c
index 98230657..d68fde10 100644
--- a/test/iopoll.c
+++ b/test/iopoll.c
@@ -23,7 +23,6 @@
static struct iovec *vecs;
static int no_buf_select;
static int no_iopoll;
-static int no_hybrid;
static int provide_buffers(struct io_uring *ring)
{
@@ -372,10 +371,8 @@ static int test_io(const char *file, int write, int sqthread, int fixed,
return 0;
}
if (ret != T_SETUP_OK) {
- if (ring_flags & IORING_SETUP_HYBRID_IOPOLL) {
- no_hybrid = 1;
+ if (ring_flags & IORING_SETUP_HYBRID_IOPOLL)
return 0;
- }
fprintf(stderr, "ring create failed: %d\n", ret);
return 1;
}
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-05 19:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05 19:31 [PATCH liburing] test/iopoll: Fix clang CI build failure Gabriel Krisman Bertazi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.