[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150720072629.GA46717@huangminfeis-MacBook-Pro.local>
Date: Mon, 20 Jul 2015 15:26:29 +0800
From: Minfei Huang <mnfhuang@...il.com>
To: Minfei Huang <mhuang@...hat.com>
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
akpm@...ux-foundation.org, tony.luck@...el.com,
wangnan0@...wei.com, david.vrabel@...rix.com, yinghai@...nel.org,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/mm: Assign the initail value to the pmd_idx
ping.
Can someone help review this patch?
Thanks
Minfei
On 07/12/15 at 08:18P, Minfei Huang wrote:
> From: Minfei Huang <mnfhuang@...il.com>
>
> The variable pmd_idx is undefined, when we try to start the loop to
> calculate the page.
>
> Assign the proper value which indexes the start address to make it work
> well.
>
> Signed-off-by: Minfei Huang <mnfhuang@...il.com>
> ---
> arch/x86/mm/init_32.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
> index 8340e45..68aec42 100644
> --- a/arch/x86/mm/init_32.c
> +++ b/arch/x86/mm/init_32.c
> @@ -137,6 +137,7 @@ page_table_range_init_count(unsigned long start, unsigned long end)
>
> vaddr = start;
> pgd_idx = pgd_index(vaddr);
> + pmd_idx = pmd_index(vaddr);
>
> for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) {
> for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end);
> --
> 2.2.2
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists