lkml.org 
[lkml]   [2022]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH -next v3 0/2] Remove unused variables in x86/boot
Date
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 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@huawei.com/

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@huawei.com/

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

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

\
 
 \ /
  Last update: 2022-09-30 05:31    [W:0.152 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site