Commit e16a9c09 authored by Tony Breeds's avatar Tony Breeds Committed by Paul Mackerras

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: default avatarTony Breeds <tony@bakeyournoodle.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 5df72bf3
...@@ -343,6 +343,7 @@ static int __init htab_dt_scan_page_sizes(unsigned long node, ...@@ -343,6 +343,7 @@ static int __init htab_dt_scan_page_sizes(unsigned long node,
return 0; return 0;
} }
#ifdef CONFIG_HUGETLB_PAGE
/* Scan for 16G memory blocks that have been set aside for huge pages /* Scan for 16G memory blocks that have been set aside for huge pages
* and reserve those blocks for 16G 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, ...@@ -380,6 +381,7 @@ static int __init htab_dt_scan_hugepage_blocks(unsigned long node,
add_gpage(phys_addr, block_size, expected_pages); add_gpage(phys_addr, block_size, expected_pages);
return 0; return 0;
} }
#endif /* CONFIG_HUGETLB_PAGE */
static void __init htab_init_page_sizes(void) static void __init htab_init_page_sizes(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment