diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2008-07-31 13:51:42 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-08-20 16:34:57 +1000 |
commit | e16a9c0990a18ee2f2874363392fdfedcf9ded58 (patch) | |
tree | 8121cdd53351b9eaf87a7f4a99cac9c0b6330b8c /arch/powerpc/mm/hash_utils_64.c | |
parent | 5df72bf3f7345a84f5ef274bf72a4546caf3ad02 (diff) | |
download | blackbird-op-linux-e16a9c0990a18ee2f2874363392fdfedcf9ded58.tar.gz blackbird-op-linux-e16a9c0990a18ee2f2874363392fdfedcf9ded58.zip |
powerpc: Guard htab_dt_scan_hugepage_blocks appropriately
htab_dt_scan_hugepage_blocks is only used when CONFIG_HUGETLB_PAGE is
defined, so guard the declaration likewise.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 14be408dfc9b..7efcb9c5217c 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c @@ -343,6 +343,7 @@ static int __init htab_dt_scan_page_sizes(unsigned long node, return 0; } +#ifdef CONFIG_HUGETLB_PAGE /* Scan for 16G memory blocks that have been set aside for huge pages * and reserve those blocks for 16G huge pages. */ @@ -380,6 +381,7 @@ static int __init htab_dt_scan_hugepage_blocks(unsigned long node, add_gpage(phys_addr, block_size, expected_pages); return 0; } +#endif /* CONFIG_HUGETLB_PAGE */ static void __init htab_init_page_sizes(void) { |