[PATCH] ppc64: four level pagetables fix

With CONFIG_HUGETLB_PAGE=n:

In file included from kernel/sysctl.c:37:
include/linux/hugetlb.h:104:1: warning: "hugetlb_free_pgd_range" redefined
In file included from include/linux/mm.h:36,
from kernel/sysctl.c:23:
include/asm/pgtable.h:492:1: warning: this is the location of the previous definition

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Andrew Morton and committed by
Paul Mackerras
b74d0bd5 40193713

+2
+2
include/asm-ppc64/pgtable.h
··· 489 490 extern void paging_init(void); 491 492 #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ 493 free_pgd_range(tlb, addr, end, floor, ceiling) 494 495 /* 496 * This gets called at the end of handling a page fault, when
··· 489 490 extern void paging_init(void); 491 492 + #ifdef CONFIG_HUGETLB_PAGE 493 #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ 494 free_pgd_range(tlb, addr, end, floor, ceiling) 495 + #endif 496 497 /* 498 * This gets called at the end of handling a page fault, when