x86/boot/compressed: Enable -Wunused and remove unused variables
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 0 repliesNew
- v44 patches 2 repliesSuperseded
- v34 patches 2 repliesSuperseded
Changes in v5 from the cover letter
- Drop unrelated fall-through change from efi_get_system_table() (Ingo)
- Avoid __maybe_unused and declare index in for loop initializer (Ingo)
- v4: https://lore.kernel.org/r/[email protected]/
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86/boot/compressed: Remove unused variables in EFI helpersarch/ | +5 | 0 replies | |
| 2/4 | x86/boot/compressed: Clean up EFI RSDP lookup in efi_get_rsdp_addr()arch/ arch/ arch/ | +5 | 0 replies | |
| 3/4 | x86/boot/compressed: Declare immovable_mem index in loop initializerarch/ | +1 | 0 replies | |
| 4/4 | x86/boot/compressed: Enable -Wunusedarch/ | +3 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Jan Stancek | Nicolas Schier |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | R-b | R-b |
| 4/4 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/4] x86/boot/compressed: Enable -Wunused and remove unused variables
This series removes unused variables and marks __efi_get_rsdp_addr() as __maybe_unused. Patch 4 then enables -Wunused, matching the W=0 kernel defaults. With WERROR=y, the warnings failed as follows:
arch/x86/boot/compressed/acpi.c:25:1: error: '__efi_get_rsdp_addr' defined but not used 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' arch/x86/boot/compressed/kaslr.c:600:13: error: unused variable 'i'
Patch 2 also drops a redundant efi_get_system_table() call and uses the existing efi_get_conf_table() error path.
Changes in v5:
- Drop unrelated fall-through change from efi_get_system_table() (Ingo)
- Avoid __maybe_unused and declare index in for loop initializer (Ingo)
- v4: https://lore.kernel.org/r/[email protected]/
Changes in v4:
- Add a newline to the log message in efi_get_system_table() (Jan)
- Make efi_get_system_table() static and update misc.h (Jan)
- v3: https://lore.kernel.org/r/[email protected]/
Changes in v3:
- Rebase patch 4/4
- v2: https://lore.kernel.org/r/[email protected]/
Changes in v2:
- Fix a kernel test robot issue by marking __efi_get_rsdp_addr() as __maybe_unused: https://lore.kernel.org/r/[email protected]/
- v1: https://lore.kernel.org/r/[email protected]/
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: Declare immovable_mem index in loop initializer x86/boot/compressed: Enable -Wunused
arch/x86/boot/compressed/Makefile | 3 +++ arch/x86/boot/compressed/acpi.c | 18 ++++-------------- arch/x86/boot/compressed/efi.c | 17 ++++++----------- arch/x86/boot/compressed/kaslr.c | 3 +-- arch/x86/boot/compressed/misc.h | 6 ------ 5 files changed, 14 insertions(+), 33 deletions(-)