[lkml]   [2017]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [v6 04/15] mm: discard memblock data later
On Fri 11-08-17 15:00:47, Pasha Tatashin wrote:
> Hi Michal,
> This suggestion won't work, because there are arches without memblock
> support: tile, sh...
> So, I would still need to have:
> #ifdef CONFIG_MEMBLOCK in page_alloc, or define memblock_discard() stubs in
> nobootmem headfile.

This is the standard way to do this. And it is usually preferred to
proliferate ifdefs in the code.
Michal Hocko

 \ /
  Last update: 2017-08-14 13:35    [W:0.125 / U:4.072 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site