Re: [PATCH] mm: disallow early_pfn_to_nid on configurations which do not implement it

2017-07-05 Thread Michal Hocko
On Wed 05-07-17 16:00:55, Andrew Morton wrote: > On Tue, 4 Jul 2017 09:58:03 +0200 Michal Hocko wrote: > > > From: Michal Hocko > > > > early_pfn_to_nid will return node 0 if both HAVE_ARCH_EARLY_PFN_TO_NID > > and HAVE_MEMBLOCK_NODE_MAP are disabled. It seems we are safe now > > because all a

Re: [PATCH] mm: disallow early_pfn_to_nid on configurations which do not implement it

2017-07-05 Thread Andrew Morton
On Tue, 4 Jul 2017 09:58:03 +0200 Michal Hocko wrote: > From: Michal Hocko > > early_pfn_to_nid will return node 0 if both HAVE_ARCH_EARLY_PFN_TO_NID > and HAVE_MEMBLOCK_NODE_MAP are disabled. It seems we are safe now > because all architectures which support NUMA define one of them (with an >

Re: [PATCH] mm: disallow early_pfn_to_nid on configurations which do not implement it

2017-07-04 Thread Vlastimil Babka
On 07/04/2017 09:58 AM, Michal Hocko wrote: > From: Michal Hocko > > early_pfn_to_nid will return node 0 if both HAVE_ARCH_EARLY_PFN_TO_NID > and HAVE_MEMBLOCK_NODE_MAP are disabled. It seems we are safe now > because all architectures which support NUMA define one of them (with an > exception of