Re: [PATCH v3] mm/memblock: add missing include

2018-07-20 Thread Andrew Morton
On Fri, 20 Jul 2018 12:16:05 -0700 Tony Luck wrote: > On Tue, Jun 26, 2018 at 11:44 AM, Mathieu Malaterre wrote: > > Because Makefile already does: > > > > obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o > > > > The #ifdef has been simplified from: > > > > #if defined(CONFIG_HAVE_MEMBLOCK) && defi

Re: [PATCH v3] mm/memblock: add missing include

2018-07-20 Thread Tony Luck
On Tue, Jun 26, 2018 at 11:44 AM, Mathieu Malaterre wrote: > Because Makefile already does: > > obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o > > The #ifdef has been simplified from: > > #if defined(CONFIG_HAVE_MEMBLOCK) && defined(CONFIG_NO_BOOTMEM) > > to simply: > > #if defined(CONFIG_NO_BOOT

[PATCH v3] mm/memblock: add missing include

2018-06-26 Thread Mathieu Malaterre
Commit 26f09e9b3a06 ("mm/memblock: add memblock memory allocation apis") introduced two new function definitions: memblock_virt_alloc_try_nid_nopanic() memblock_virt_alloc_try_nid() Commit ea1f5f3712af ("mm: define memblock_virt_alloc_try_nid_raw") introduced the following function definition