Re: [PATCH v2 1/2] mm/Kconfig: make FLATMEM depend on !NUMA
"Zi Yan" <[email protected]> Tue, 04 Aug 2026 11:56:10 -0400
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue Aug 4, 2026 at 11:11 AM EDT, Sang-Heon Jeon wrote: > FLATMEM + NUMA is not supported by any architecture and fails to build. > The constraint is only implicit in the arch Kconfig files. > > So make it explicit in mm/Kconfig. > > No functional change. > > Suggested-by: Zi Yan <[email protected]> > Signed-off-by: Sang-Heon Jeon <[email protected]> > --- > mm/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) Hopefully no new arch will try to support it. Acked-by: Zi Yan <[email protected]> > > diff --git a/mm/Kconfig b/mm/Kconfig > index 060190e12bce..331daf7fcfab 100644 > --- a/mm/Kconfig > +++ b/mm/Kconfig > @@ -390,6 +390,7 @@ choice > > config FLATMEM_MANUAL > bool "Flat Memory" > + depends on !NUMA > depends on !ARCH_SPARSEMEM_ENABLE || ARCH_FLATMEM_ENABLE > help > This option is best suited for non-NUMA systems with > @@ -424,6 +425,7 @@ config SPARSEMEM > > config FLATMEM > def_bool y > + depends on !NUMA > depends on !SPARSEMEM || FLATMEM_MANUAL > > # -- Best Regards, Yan, Zi