From: Ingo Molnar <mingo@elte.hu>
To: Amerigo Wang <amwang@redhat.com>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
yinghai@kernel.org
Subject: Re: [Patch] x86: fix a wrong argument of reserve_bootmem()
Date: Fri, 21 Aug 2009 16:39:18 +0200 [thread overview]
Message-ID: <20090821143918.GI11098@elte.hu> (raw)
In-Reply-To: <20090821083709.5098.52505.sendpatchset@localhost.localdomain>
* Amerigo Wang <amwang@redhat.com> wrote:
> This line looks suspicious, because if this is true, then the
> 'flags' parameter of function reserve_bootmem_generic() will be
> unused when !CONFIG_NUMA. I don't think this is what we want.
>
> Signed-off-by: WANG Cong <amwang@redhat.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Yinghai Lu <yinghai@kernel.org>
>
> ---
> diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
> index 6176fe8..ea56b8c 100644
> --- a/arch/x86/mm/init_64.c
> +++ b/arch/x86/mm/init_64.c
> @@ -796,7 +796,7 @@ int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
> return ret;
>
> #else
> - reserve_bootmem(phys, len, BOOTMEM_DEFAULT);
> + reserve_bootmem(phys, len, flags);
Yes, this looks like an oversight. Since it only affected 32-bit
NUMA materially, which is quite rare, it probably didnt matter that
much but should be fixed ...
Ingo
next prev parent reply other threads:[~2009-08-21 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-21 8:34 [Patch] x86: fix a wrong argument of reserve_bootmem() Amerigo Wang
2009-08-21 14:39 ` Ingo Molnar [this message]
2009-08-21 14:43 ` [tip:x86/urgent] x86: Fix an incorrect " tip-bot for Amerigo Wang
2009-08-24 18:24 ` tip-bot for Amerigo Wang
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=20090821143918.GI11098@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=amwang@redhat.com \
--cc=linux-kernel@vger.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