Re: [RFC PATCH 21/29] memblock: replace alloc_bootmem with memblock_alloc

2018-09-06 Thread Mike Rapoport
On Thu, Sep 06, 2018 at 10:55:15AM +0200, Michal Hocko wrote: > On Wed 05-09-18 18:59:36, Mike Rapoport wrote: > > The conversion is done using the following semantic patch: > > > > @@ > > expression e; > > @@ > > - __alloc_bootmem(e) > > Did you mean alloc_bottmem? Anyway the only difference fro

Re: [RFC PATCH 21/29] memblock: replace alloc_bootmem with memblock_alloc

2018-09-06 Thread Michal Hocko
On Wed 05-09-18 18:59:36, Mike Rapoport wrote: > The conversion is done using the following semantic patch: > > @@ > expression e; > @@ > - __alloc_bootmem(e) Did you mean alloc_bottmem? Anyway the only difference from _alloc_bootmem is SMP_CACHE_BYTES and so you can use 0 alignment for memblock_

[RFC PATCH 21/29] memblock: replace alloc_bootmem with memblock_alloc

2018-09-05 Thread Mike Rapoport
The conversion is done using the following semantic patch: @@ expression e; @@ - __alloc_bootmem(e) + memblock_alloc_from(e, 0) Signed-off-by: Mike Rapoport --- arch/alpha/kernel/core_marvel.c | 4 ++-- arch/alpha/kernel/pci-noop.c| 4 ++-- arch/alpha/kernel/pci.c | 4 ++