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 <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>

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

Try below:

make bzImage EXTRA_CFLAGS="-Wunused-variable"

Zhenzhong

Reply via email to