lkml.org 
[lkml]   [2014]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 2/9] mm: Mark functions as static in memory.c
    Mark functions as static in memory.c because they are not used outside
    this file.

    This eliminates the following warnings in mm/memory.c:
    mm/memory.c:3530:5: warning: no previous prototype for ‘numa_migrate_prep’ [-Wmissing-prototypes]
    mm/memory.c:3545:5: warning: no previous prototype for ‘do_numa_page’ [-Wmissing-prototypes]

    Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
    Reviewed-by: Josh Triplett <josh@joshtriplett.org>
    ---
    mm/memory.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/mm/memory.c b/mm/memory.c
    index 5d9025f..982c1ad 100644
    --- a/mm/memory.c
    +++ b/mm/memory.c
    @@ -3527,7 +3527,7 @@ static int do_nonlinear_fault(struct mm_struct *mm, struct vm_area_struct *vma,
    return __do_fault(mm, vma, address, pmd, pgoff, flags, orig_pte);
    }

    -int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
    +static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
    unsigned long addr, int page_nid,
    int *flags)
    {
    @@ -3542,7 +3542,7 @@ int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
    return mpol_misplaced(page, vma, addr);
    }

    -int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
    +static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
    unsigned long addr, pte_t pte, pte_t *ptep, pmd_t *pmd)
    {
    struct page *page = NULL;
    --
    1.7.9.5
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2014-02-07 14:21    [W:2.047 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site