mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/boot/compressed/64: Remove unused variable
@ 2019-07-16 13:17 Zhenzhong Duan
  2019-07-17 14:34 ` Kirill A. Shutemov
  2019-07-18 19:47 ` [tip:x86/urgent] " tip-bot for Zhenzhong Duan
  0 siblings, 2 replies; 4+ messages in thread
From: Zhenzhong Duan @ 2019-07-16 13:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: x86, Zhenzhong Duan, Kirill A. Shutemov, Peter Zijlstra,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov

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@oracle.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
---
 arch/x86/boot/compressed/pgtable_64.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/boot/compressed/pgtable_64.c b/arch/x86/boot/compressed/pgtable_64.c
index f8debf7..5f2d030 100644
--- a/arch/x86/boot/compressed/pgtable_64.c
+++ b/arch/x86/boot/compressed/pgtable_64.c
@@ -40,7 +40,6 @@ struct paging_config {
 static unsigned long find_trampoline_placement(void)
 {
 	unsigned long bios_start = 0, ebda_start = 0;
-	unsigned long trampoline_start;
 	struct boot_e820_entry *entry;
 	char *signature;
 	int i;
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-18 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 13:17 [PATCH] x86/boot/compressed/64: Remove unused variable Zhenzhong Duan
2019-07-17 14:34 ` Kirill A. Shutemov
2019-07-18  8:13   ` Zhenzhong Duan
2019-07-18 19:47 ` [tip:x86/urgent] " tip-bot for Zhenzhong Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome