From: Shuah Khan <shuah.khan@hp.com>
To: Andrew Morton <akpm@linux-foundation.org>,
tglx@linutronix.de, hpa@zytor.com, mingo@redhat.com,
yinghai@kernel.org, tangchen@cn.fujitsu.com,
wency@cn.fujitsu.com
Cc: LKML <linux-kernel@vger.kernel.org>, x86@kernel.org, shuahkhan@gmail.com
Subject: [PATCH linux-next] x86/mm: Fix compile warning in remove_pagetable()
Date: Tue, 05 Feb 2013 19:52:16 -0700 [thread overview]
Message-ID: <1360119136.8356.4.camel@lorien2> (raw)
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
next reply other threads:[~2013-02-06 2:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 2:52 Shuah Khan [this message]
2013-02-06 4:24 ` [PATCH linux-next] x86/mm: Fix compile warning in remove_pagetable() Yinghai Lu
2013-02-06 8:27 ` David Rientjes
2013-02-06 8:30 ` Tang Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360119136.8356.4.camel@lorien2 \
--to=shuah.khan@hp.com \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=shuahkhan@gmail.com \
--cc=tangchen@cn.fujitsu.com \
--cc=tglx@linutronix.de \
--cc=wency@cn.fujitsu.com \
--cc=x86@kernel.org \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox