From: Andy Whitcroft Convert over to the new Kconfig options. Signed-off-by: Andy Whitcroft Cc: Christoph Lameter Cc: Mel Gorman Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- arch/powerpc/Kconfig | 9 +-------- arch/powerpc/mm/init_64.c | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) diff -puN arch/powerpc/Kconfig~ppc64-sparsemem_vmemmap-support-convert-to-new-config-options arch/powerpc/Kconfig --- a/arch/powerpc/Kconfig~ppc64-sparsemem_vmemmap-support-convert-to-new-config-options +++ a/arch/powerpc/Kconfig @@ -265,6 +265,7 @@ config ARCH_FLATMEM_ENABLE config ARCH_SPARSEMEM_ENABLE def_bool y depends on PPC64 + select SPARSEMEM_VMEMMAP_ENABLE config ARCH_SPARSEMEM_DEFAULT def_bool y @@ -275,14 +276,6 @@ config ARCH_POPULATES_NODE_MAP source "mm/Kconfig" -config SPARSEMEM_VMEMMAP - def_bool y - depends on SPARSEMEM - -config ARCH_POPULATES_SPARSEMEM_VMEMMAP - def_bool y - depends on SPARSEMEM_VMEMMAP - config ARCH_MEMORY_PROBE def_bool y depends on MEMORY_HOTPLUG diff -puN arch/powerpc/mm/init_64.c~ppc64-sparsemem_vmemmap-support-convert-to-new-config-options arch/powerpc/mm/init_64.c --- a/arch/powerpc/mm/init_64.c~ppc64-sparsemem_vmemmap-support-convert-to-new-config-options +++ a/arch/powerpc/mm/init_64.c @@ -182,8 +182,7 @@ void pgtable_cache_init(void) } } -#ifdef CONFIG_ARCH_POPULATES_SPARSEMEM_VMEMMAP - +#ifdef CONFIG_SPARSEMEM_VMEMMAP /* * Given an address within the vmemmap, determine the pfn of the page that * represents the start of the section it is within. Note that we have to _