The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/4] x86/boot/compressed: Enable -Wunused and remove unused variables
@ 2026-06-21 14:41 Thorsten Blum
  2026-06-21 14:41 ` [PATCH 1/4] x86/boot/compressed: Remove unused variables in EFI helpers Thorsten Blum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thorsten Blum @ 2026-06-21 14:41 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H. Peter Anvin, Ard Biesheuvel, Nathan Chancellor, Nicolas Schier
  Cc: x86, linux-kernel, Thorsten Blum

This series removes unused variables and enables -Wunused, matching the
W=0 kernel defaults. With WERROR=y, the warnings failed as follows:

  arch/x86/boot/compressed/acpi.c:29:6: error: unused variable 'ret'
  arch/x86/boot/compressed/acpi.c:57:15: error: unused variable 'nr_tables'
  arch/x86/boot/compressed/efi.c:64:16: error: unused variable 'et'
  arch/x86/boot/compressed/efi.c:136:6: error: unused variable 'ret'

Patch 2 also drops a redundant efi_get_system_table() call and uses the
existing efi_get_conf_table() error path.

Thorsten Blum (4):
  x86/boot/compressed: Remove unused variables in EFI helpers
  x86/boot/compressed: Clean up EFI RSDP lookup in efi_get_rsdp_addr()
  x86/boot/compressed: Mark process_mem_region() index __maybe_unused
  x86/boot/compressed: Enable -Wunused

 arch/x86/boot/compressed/Makefile |  3 +++
 arch/x86/boot/compressed/acpi.c   | 16 +++-------------
 arch/x86/boot/compressed/efi.c    | 17 +++++------------
 arch/x86/boot/compressed/kaslr.c  |  3 ++-
 4 files changed, 13 insertions(+), 26 deletions(-)


base-commit: 1a3746ccbb0a97bed3c06ccde6b880013b1dddc1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-21 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-21 14:41 [PATCH 0/4] x86/boot/compressed: Enable -Wunused and remove unused variables Thorsten Blum
2026-06-21 14:41 ` [PATCH 1/4] x86/boot/compressed: Remove unused variables in EFI helpers Thorsten Blum
2026-06-21 14:41 ` [PATCH 2/4] x86/boot/compressed: Clean up EFI RSDP lookup in efi_get_rsdp_addr() Thorsten Blum
2026-06-21 14:41 ` [PATCH 3/4] x86/boot/compressed: Mark process_mem_region() index __maybe_unused Thorsten Blum
2026-06-21 14:41 ` [PATCH 4/4] x86/boot/compressed: Enable -Wunused Thorsten Blum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox