• David Gibson's avatar
    [PATCH] hugepage: Make {alloc,free}_huge_page() local · 27a85ef1
    David Gibson authored
    Originally, mm/hugetlb.c just handled the hugepage physical allocation path
    and its {alloc,free}_huge_page() functions were used from the arch specific
    hugepage code.  These days those functions are only used with mm/hugetlb.c
    itself.  Therefore, this patch makes them static and removes their
    prototypes from hugetlb.h.  This requires a small rearrangement of code in
    mm/hugetlb.c to avoid a forward declaration.
    This patch causes no regressions on the libhugetlbfs testsuite (ppc64,
    Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
    Cc: William Lee Irwin III <wli@holomorphy.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>