From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Date: Tue, 19 Mar 2019 20:39:12 +0000 Subject: Re: [PATCH] sh: mm: make use of new memblocks_present() helper Message-Id: <20190319203912.GA17966@rapoport-lnx> List-Id: References: <20190319180930.8231-1-logang@deltatee.com> In-Reply-To: <20190319180930.8231-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Logan Gunthorpe Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Michal Hocko , Christoph Hellwig , Yoshinori Sato , Rich Felker On Tue, Mar 19, 2019 at 12:09:30PM -0600, Logan Gunthorpe wrote: > Cleanup the open coded for_each_memblock() loop that is equivalent > to the new memblocks_present() helper. > > Signed-off-by: Logan Gunthorpe > Reviewed-by: Christoph Hellwig > Cc: Yoshinori Sato > Cc: Rich Felker Reviewed-by: Mike Rapoport > --- > arch/sh/mm/init.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > This is just a resend > > diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c > index a8e5c0e00fca..dc0ff41d602d 100644 > --- a/arch/sh/mm/init.c > +++ b/arch/sh/mm/init.c > @@ -234,12 +234,7 @@ static void __init do_init_bootmem(void) > > plat_mem_setup(); > > - for_each_memblock(memory, reg) { > - int nid = memblock_get_region_node(reg); > - > - memory_present(nid, memblock_region_memory_base_pfn(reg), > - memblock_region_memory_end_pfn(reg)); > - } > + memblocks_present(); > sparse_init(); > } > > -- > 2.19.0 > -- Sincerely yours, Mike.