From: Yosry Ahmed <yosry@kernel.org>
To: Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>,
Andrew Jones <andrew.jones@linux.dev>
Cc: Greg Thelen <gthelen@google.com>,
kvm@vger.kernel.org, Yosry Ahmed <yosry@kernel.org>
Subject: [kvm-unit-tests PATCH 0/2] Fix Clang 24 -Wunused-but-set-global warnings
Date: Thu, 22 Oct 2026 20:44:11 +0000 [thread overview]
Message-ID: <20261022204413.856786-1-yosry@kernel.org> (raw)
Building kvm-unit-tests with Clang 24 fails with -Werror due to the new
-Wunused-but-set-global warning flagging static variables that are
written to but never read in lib/chr-testdev.c and lib/x86/desc.c.
Remove both unused variables.
Yosry Ahmed (2):
chr-testdev: Remove unused in_vq
x86/desc: Remove unused exception flag
lib/chr-testdev.c | 3 +--
lib/x86/desc.c | 2 --
2 files changed, 1 insertion(+), 4 deletions(-)
base-commit: 5a221342a025948fa7d84f0c404748f6ba57f3ad
--
2.56.0.257.gf7497c7d27-goog
next reply other threads:[~2026-10-22 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 20:44 Yosry Ahmed [this message]
2026-10-22 20:44 ` [kvm-unit-tests PATCH 1/2] chr-testdev: Remove unused in_vq Yosry Ahmed
2026-10-23 9:58 ` Andrew Jones
2026-10-22 20:44 ` [kvm-unit-tests PATCH 2/2] x86/desc: Remove unused exception flag Yosry Ahmed
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=20261022204413.856786-1-yosry@kernel.org \
--to=yosry@kernel.org \
--cc=andrew.jones@linux.dev \
--cc=gthelen@google.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=thuth@redhat.com \
/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