From: Gabriel Krisman Bertazi <krisman@suse.de>
To: axboe@kernel.dk
Cc: io-uring@vger.kernel.org, Gabriel Krisman Bertazi <krisman@suse.de>
Subject: [PATCH liburing] test/iopoll: Fix clang CI build failure
Date: Wed, 5 Aug 2026 15:31:58 -0400 [thread overview]
Message-ID: <20260805193158.400489-1-krisman@suse.de> (raw)
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
reply other threads:[~2026-08-05 19:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260805193158.400489-1-krisman@suse.de \
--to=krisman@suse.de \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox