Re: [PATCH] x86/boot/compressed/64: Remove unused variable

From: Zhenzhong Duan
Date: Thu Jul 18 2019 - 04:14:45 EST



On 2019/7/17 22:34, Kirill A. Shutemov wrote:
On Tue, Jul 16, 2019 at 01:17:20PM +0000, Zhenzhong Duan wrote:
Fix gcc warning:

arch/x86/boot/compressed/pgtable_64.c: In function 'find_trampoline_placement':
arch/x86/boot/compressed/pgtable_64.c:43:16: warning: unused variable 'trampoline_start' [-Wunused-variable]
unsigned long trampoline_start;
^

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@xxxxxxxxxx>
Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxxxx>
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

Have no idea why I don't see the warning in my setup.

Try below:

make bzImage EXTRA_CFLAGS="-Wunused-variable"

Zhenzhong