lkml.org 
[lkml]   [2013]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] mm: fix the incorrect function name in alloc_low_pages()
    Date
    From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

    Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
    ---
    arch/x86/mm/init.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
    index 04664cd..64d860f 100644
    --- a/arch/x86/mm/init.c
    +++ b/arch/x86/mm/init.c
    @@ -53,12 +53,12 @@ __ref void *alloc_low_pages(unsigned int num)
    if ((pgt_buf_end + num) > pgt_buf_top || !can_use_brk_pgt) {
    unsigned long ret;
    if (min_pfn_mapped >= max_pfn_mapped)
    - panic("alloc_low_page: ran out of memory");
    + panic("alloc_low_pages: ran out of memory");
    ret = memblock_find_in_range(min_pfn_mapped << PAGE_SHIFT,
    max_pfn_mapped << PAGE_SHIFT,
    PAGE_SIZE * num , PAGE_SIZE);
    if (!ret)
    - panic("alloc_low_page: can not alloc memory");
    + panic("alloc_low_pages: can not alloc memory");
    memblock_reserve(ret, PAGE_SIZE * num);
    pfn = ret >> PAGE_SHIFT;
    } else {
    --
    1.7.11.7


    \
     
     \ /
      Last update: 2013-10-31 14:21    [W:4.786 / U:0.356 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site