All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] x86/mm: Fix compile warning in remove_pagetable()
@ 2013-02-06  2:52 Shuah Khan
  2013-02-06  4:24 ` Yinghai Lu
  2013-02-06  8:27 ` David Rientjes
  0 siblings, 2 replies; 4+ messages in thread
From: Shuah Khan @ 2013-02-06  2:52 UTC (permalink / raw)
  To: Andrew Morton, tglx, hpa, mingo, yinghai, tangchen, wency
  Cc: LKML, x86, shuahkhan

Fix the following compile warning in remove_pagetable():
arch/x86/mm/init_64.c: In function ‘remove_pagetable’:
arch/x86/mm/init_64.c:996:9: warning: ‘next’ may be used uninitialized in this function [-Wuninitialized]


Signed-off-by: Shuah Khan <shuah.khan@hp.com>
---
 arch/x86/mm/init_64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 67bad4b..ed78400 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -987,7 +987,7 @@ remove_pud_table(pud_t *pud_start, unsigned long addr, unsigned long end,
 static void __meminit
 remove_pagetable(unsigned long start, unsigned long end, bool direct)
 {
-	unsigned long next;
+	unsigned long next = pgd_addr_end(start, end);
 	pgd_t *pgd;
 	pud_t *pud;
 	bool pgd_changed = false;
-- 
1.7.9.5




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

end of thread, other threads:[~2013-02-06  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06  2:52 [PATCH linux-next] x86/mm: Fix compile warning in remove_pagetable() Shuah Khan
2013-02-06  4:24 ` Yinghai Lu
2013-02-06  8:27 ` David Rientjes
2013-02-06  8:30   ` Tang Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.