Re: [PATCH] mm: move function ‘is_pageblock_removable_nolock’ inside blockers

2018-05-09 Thread Michal Hocko
On Sat 05-05-18 22:11:06, Mathieu Malaterre wrote: > Function ‘is_pageblock_removable_nolock’ is not used unless > CONFIG_MEMORY_HOTREMOVE is activated. Move it in between #ifdef sentinel to > match prototype in . Silence gcc warning (W=1): > > mm/page_alloc.c:7704:6: warning: no previous protot

[PATCH] mm: move function ‘is_pageblock_removable_nolock’ inside blockers

2018-05-05 Thread Mathieu Malaterre
Function ‘is_pageblock_removable_nolock’ is not used unless CONFIG_MEMORY_HOTREMOVE is activated. Move it in between #ifdef sentinel to match prototype in . Silence gcc warning (W=1): mm/page_alloc.c:7704:6: warning: no previous prototype for ‘is_pageblock_removable_nolock’ [-Wmissing-prototype