Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2363656imj; Mon, 18 Feb 2019 04:50:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IZlEfpjAK4G+jthyopIwcfTAftRzaQufYWwQJhWZ3HlrzCOd3GlGIez5o89qPtDKPM5yAKj X-Received: by 2002:a17:902:7207:: with SMTP id ba7mr11247460plb.16.1550494255889; Mon, 18 Feb 2019 04:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550494255; cv=none; d=google.com; s=arc-20160816; b=PnoDW9tuhFFyMb1kKr5xqrSaKt/a6whDQOU5FDgCTGDBajRqPlgch9b4BR/xTLi/j7 rPB2MZzMBlCDh6Mcb7u/koIjpYEc5UQDT8+9N+Sxj+fhqsqSuG8wp+srWrMW5C9p18Pn oOATDt+AiO6ThYpT1zCZXa8uGiXmMOvhzxSmmlOcoDobgDMNKgDSZnXq5p/FKQQVcuzi 6h++PtHOx3PSeImkMjOxgj55Rdsxu1YFsmwHn23MS/4z6JL8nNZ8nNMolZOe53y521t0 LFypKxI+2Hrzz/2bVtAd+IWdacyO5kxF3OW/VgOElu8ddIT29this7eB4MzbaQoWs/FH XZtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=T3mDCcqlTfvGRxpNOHBVgyu2R93YF4O1+jAeLCd5+y8=; b=LK+81Zx7ufOkhIl6b+VkOqY+cPAMwpxeq7e1txfweMobhxiV27H9qkMO2sGBXjfxug UL9vIG4ynpcNHvftfE12IhizByfsAlFeRdruGIIrAZMGsChgioTV7Fg7SXJGAc3+03Zd zRsje731Lh7f6bVPS4s0D6JBvSrRkEs5I5Vu/3NSkjFODu7H+TM9iw8oZHBBpCdQCGRr 20/4lcp3pF7IE1WHlEEXNXZiMXvukDF13fr/2/083THlL8dOh+ST8I9IJBsvfKjUD0DZ oD46zUXKju9AtV/kCLPsZ63j1soDjA8Rg1WR4SiRYW6U8VWQh8TyVIckF846fIaTyYUv AUpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d3929Rhy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si15405839plk.300.2019.02.18.04.50.40; Mon, 18 Feb 2019 04:50:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d3929Rhy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729842AbfBRMuf (ORCPT + 99 others); Mon, 18 Feb 2019 07:50:35 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44384 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728874AbfBRMuf (ORCPT ); Mon, 18 Feb 2019 07:50:35 -0500 Received: by mail-lj1-f196.google.com with SMTP id q128so14201733ljb.11; Mon, 18 Feb 2019 04:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T3mDCcqlTfvGRxpNOHBVgyu2R93YF4O1+jAeLCd5+y8=; b=d3929Rhyr7JOx9T5ZNS/6Yvki/jgtKOl1mQuZDiAuzD+uLmHBJA2ImNlzS57u0vjU/ jNws9qOKr7mOkjYV/Nfm4TJXQmA33N16G6VlmjdgKbs310j7PDoFa0VRVneZTdZPGi0M W7HvYdSndWcBXb5ZtA7BY/f7kUN02sa4TH4GuisKrt6rTa5WM9LX6XPz7dnG81E2A270 AvCoZSdQIfycQQEG4BM+aU/M1/S8c36XS6+kwzPIa9efHzaX/TzViHgV9HoS1C27/vME ezEEYRnpVK5/QuJAlIUGlOJjVjPEG/u5gaHDT/EpS2x94vaeTTERXn2sYEbj2LoO3qk9 0TAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T3mDCcqlTfvGRxpNOHBVgyu2R93YF4O1+jAeLCd5+y8=; b=rOGeFKH9ArTk5vjj9hKkgUpaH4eXj/1tm8c2JbagUqP60weGT9PJ5PWROaoi1omMQq lgkKW+i9+xs73vOm8hCq/IR7m9DTjN8MMubWznZwMrqcLz4R/FWcQuISeJH7nHc21gq+ xc/gz3aSHD56tLlhEJ9jhQzZbuH4pNNZWIPmsXRHOvC+r+IkOXdgFAY63ixEOvz3D0IS jZnekxPmG0hMfwpXs2Bk2WKU8/GNILwAP0Hk99FXXssKUiIOjvbwSF9TRntUkpyFR/aD s1M4rMh/+OEzzDIc+DObdPMVitPxztU9nKea0AL/A96Gn83DYJEf6hXWv7tBNMVVJBuw wLeQ== X-Gm-Message-State: AHQUAuZb3yrLIPLwel+1n9sxCm+wfzoXSPOvLlP3KTa8VP0DH0jITwpE e8g46+KvCfFZrVPoyS6HfB49/gJ9EcRtEE8jszc= X-Received: by 2002:a2e:3807:: with SMTP id f7mr12365910lja.9.1550494232904; Mon, 18 Feb 2019 04:50:32 -0800 (PST) MIME-Version: 1.0 References: <1550159977-8949-5-git-send-email-rppt@linux.ibm.com> In-Reply-To: From: Souptick Joarder Date: Mon, 18 Feb 2019 18:20:20 +0530 Message-ID: Subject: Re: [PATCH 4/4] riscv: switch over to generic free_initmem() To: Mike Rapoport Cc: Andrew Morton , Palmer Dabbelt , Christoph Hellwig , rkuo@codeaurora.org, linux-arch@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-MM , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2019 at 6:16 PM Souptick Joarder wrote: > > Hi Mike, > > On Fri, Feb 15, 2019 at 2:19 AM Palmer Dabbelt wrote: > > > > On Thu, 14 Feb 2019 07:59:37 PST (-0800), rppt@linux.ibm.com wrote: > > > The riscv version of free_initmem() differs from the generic one only in > > > that it sets the freed memory to zero. > > > > > > Make ricsv use the generic version and poison the freed memory. > > > > > > Signed-off-by: Mike Rapoport > > Just for clarity, does same change applicable in below places - > > arch/openrisc/mm/init.c#L231 > arch/alpha/mm/init.c#L290 > arch/arc/mm/init.c#L213 > arch/m68k/mm/init.c#L109 > arch/nds32/mm/init.c#L247 > arch/nios2/mm/init.c#L92 > arch/openrisc/mm/init.c#L231 Please ignore this query. just saw the other patches. Sorry for the noise. > > > > > --- > > > arch/riscv/mm/init.c | 5 ----- > > > 1 file changed, 5 deletions(-) > > > > > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > > > index 658ebf6..2af0010 100644 > > > --- a/arch/riscv/mm/init.c > > > +++ b/arch/riscv/mm/init.c > > > @@ -60,11 +60,6 @@ void __init mem_init(void) > > > mem_init_print_info(NULL); > > > } > > > > > > -void free_initmem(void) > > > -{ > > > - free_initmem_default(0); > > > -} > > > - > > > #ifdef CONFIG_BLK_DEV_INITRD > > > void free_initrd_mem(unsigned long start, unsigned long end) > > > { > > > > Reviewed-by: Palmer Dabbelt > > > > I'm going to assume this goes in with the rest of the patch set, thanks! > >