[PATCH -next v4 0/2] Remove unused variables in x86/boot

From: Li Zetao
Date: Mon Oct 10 2022 - 21:32:59 EST


This series removes some unused variables in x86/boot, and add the
"-Wall" flag to Makefile, which is the old problem of x86 not sharing
makefiles.

Changes since v3:
- Re-order the patches, so the fixes for the new warnings are first,
and then turn on the compiler flags in a final patch

v3 at:
https://lore.kernel.org/all/20220930032727.3451619-1-lizetao1@xxxxxxxxxx/

Changes since v2:
- Add "frame-address" flag and "-std=gnu11" to
x86/boot/compressed/Makefile to fix warnings when "-Wall" flag added.
- Declare the variable "i" within the for loop to reslove unused
variable warning.
- Delete __efi_get_rsdp_addr function when CONFIG_EFI is disabled to
resolve unused function warning.

v2 at:
https://lore.kernel.org/all/20220927081512.2456624-1-lizetao1@xxxxxxxxxx/

Changes since v1:
- Add "-Wall" flag to x86/boot/compressed/Makefile
- Remove unused variables "et" in efi_get_system_table() and "ret" in
efi_get_conf_table()
- Remove unused variables "ret" in __efi_get_rsdp_addr() and
"nr_tables" in efi_get_rsdp_addr()

v1 at:
https://lore.kernel.org/all/20220923113209.3046960-1-lizetao1@xxxxxxxxxx/

Li Zetao (2):
x86/boot: Remove unused variables
x86/boot/compressed: Add "-Wall" flag to Makefile

arch/x86/boot/compressed/Makefile | 3 ++-
arch/x86/boot/compressed/acpi.c | 7 +++----
arch/x86/boot/compressed/efi.c | 2 --
arch/x86/boot/compressed/kaslr.c | 3 +--
arch/x86/boot/compressed/sev.c | 1 -
5 files changed, 6 insertions(+), 10 deletions(-)

--
2.34.1