Skip to content

Commit 4eda2bc

Browse files
davidhildenbrandsuryasaimadhu
authored andcommitted
x86/Kconfig: Select ARCH_SELECT_MEMORY_MODEL only if FLATMEM and SPARSEMEM are possible
x86-64 supports only CONFIG_SPARSEMEM; there is nothing users can select. So enable the memory model selection (via CONFIG_ARCH_SELECT_MEMORY_MODEL) only if both, SPARSEMEM and FLATMEM are possible, which isn't the case on x86-64. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20210929144321.50411-1-david@redhat.com
1 parent e783362 commit 4eda2bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ config ARCH_SPARSEMEM_DEFAULT
16371637

16381638
config ARCH_SELECT_MEMORY_MODEL
16391639
def_bool y
1640-
depends on ARCH_SPARSEMEM_ENABLE
1640+
depends on ARCH_SPARSEMEM_ENABLE && ARCH_FLATMEM_ENABLE
16411641

16421642
config ARCH_MEMORY_PROBE
16431643
bool "Enable sysfs memory/probe interface"

0 commit comments

Comments
 (0)