Re: [RFC PATCH 20/29] memblock: replace __alloc_bootmem with memblock_alloc_from

2018-09-06 Thread Mike Rapoport
On Thu, Sep 06, 2018 at 10:52:05AM +0200, Michal Hocko wrote: > On Wed 05-09-18 18:59:35, Mike Rapoport wrote: > > The conversion is done using the following semantic patch: > > > > @@ > > expression e1, e2, e3; > > @@ > > - __alloc_bootmem(e1, e2, e3) > > + memblock_alloc(e1, e2, e3) > > This is

Re: [RFC PATCH 20/29] memblock: replace __alloc_bootmem with memblock_alloc_from

2018-09-06 Thread Michal Hocko
On Wed 05-09-18 18:59:35, Mike Rapoport wrote: > The conversion is done using the following semantic patch: > > @@ > expression e1, e2, e3; > @@ > - __alloc_bootmem(e1, e2, e3) > + memblock_alloc(e1, e2, e3) This is not that straightforward. memblock_virt_alloc with 0 alignment uses SMP_CACHE_BYT

[RFC PATCH 20/29] memblock: replace __alloc_bootmem with memblock_alloc_from

2018-09-05 Thread Mike Rapoport
The conversion is done using the following semantic patch: @@ expression e1, e2, e3; @@ - __alloc_bootmem(e1, e2, e3) + memblock_alloc(e1, e2, e3) Signed-off-by: Mike Rapoport --- arch/alpha/kernel/core_cia.c | 2 +- arch/alpha/kernel/pci_iommu.c | 4 ++-- arch/alpha/kernel/setup.c | 2