x86/Kconfig: Select ARCH_SELECT_MEMORY_MODEL only if FLATMEM and SPARSEMEM are possible
authorDavid Hildenbrand <david@redhat.com>
Wed, 29 Sep 2021 14:43:21 +0000 (16:43 +0200)
committerBorislav Petkov <bp@suse.de>
Sun, 23 Jan 2022 19:52:16 +0000 (20:52 +0100)
commit4eda2bc3431ebe5c8361580877a4666d10ea28a7
tree7f8f2bac933b85ed3966e2fedf616489e908f414
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
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
arch/x86/Kconfig