Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2362358imj; Mon, 18 Feb 2019 04:49:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZodoki5YR7HdhweEeomtsHEF34OBDCLW0NRVp0J3qUkg7/LLFRTicPloAQoy9Y0q3ZcLvj X-Received: by 2002:a62:6e05:: with SMTP id j5mr24628423pfc.158.1550494170223; Mon, 18 Feb 2019 04:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550494170; cv=none; d=google.com; s=arc-20160816; b=z27f4eX5nmvZgg2p9D/3sHeWmhjDQEYehqj//z+KBaopRbXNCGG5cWL0wCFVQGZycg W0QLB3lUYqe+oCnrosyiHJ1k+jDl6449+j2n8yy5vt2yPVyoQ3s3k+l7sRdAR1s+Ufhi DGK3BmnRdLtdRoxXDAWcFqBd0z4V/eBNaUD4SJgchPYBI492hA/NJ+GyVOmY5bgD336u B+gfgwkb8pHSQ4VxM9h4OoPVz2+DJ62TcpAqlg8d1318VXge0OcOGs7YKJwpqbnIbdn7 paB/pQsswPTZnB+fJCX4Q/Wwp2x0EhcIgmkJ2zvxJDfpKOe2JOV/i+2OAOK1/4s2xS/7 K9BQ== 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=mhM/mauBJck6aHRYgcqqFsOsl1B7ZjHg4yd8uzUwQDE=; b=z2noJ4lr7azYnNStiggZn6X0k1VkQXFoXJYE10VGKSp+JpgsqYPy621X5UHP8NZlwA fKAte4LtvSbs+aA8c1YfebxgeydP0eKXIIVmxvQrRvXdCC4zDkhjyZeh7h5IvDNQbT2j CMz/jILGJogiO/OsWTzHAvpomdQ1u2cb6225HXT4OEiS2Km6a4mMm6DWYx17RC8L715o A7P6oHsmIVfGzjYMRKL/YHkctZdBo5AREB0aCffPoBTd7arg4R96cqTn/7Y4DXB74epq mTfqlUsY37JMn1RugZxe4A1EBjTE4HTvPNFsNbQ5slzasNjlcfNLE7VXK5FydUc1ok/5 x+HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mjcBjbah; 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 l93si14376663plb.433.2019.02.18.04.49.14; Mon, 18 Feb 2019 04:49:30 -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=mjcBjbah; 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 S1730462AbfBRMrO (ORCPT + 99 others); Mon, 18 Feb 2019 07:47:14 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42848 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728874AbfBRMrN (ORCPT ); Mon, 18 Feb 2019 07:47:13 -0500 Received: by mail-lf1-f67.google.com with SMTP id l10so12171085lfh.9; Mon, 18 Feb 2019 04:47:12 -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=mhM/mauBJck6aHRYgcqqFsOsl1B7ZjHg4yd8uzUwQDE=; b=mjcBjbahr86ojcygi/eLoNW179Ryv3mSs0MohtnrQAV6FyL+VV1pgHTqrSBRCfjxDD 3P6j1Y+gqW+caEQE39wjF5Y8WsUDkaatY7qreO2lfZxw2xY9NceIH2vuB9qC2odbVX4U h1XX4saztnNAEoPDc82o6JaiCNHqLV2BlsDqGn7UCeKybvfN0NtqktNs3lRnKCLWD03g zLIXkVCt7YBC5z4sh6zI96IvebtIW/FypSqGFPqDqb5iSb6vBN31TKRKalKtaBaPdjV8 Gv4g4zO6IeDglQk636jbmv73/AGMiHSBcis/aSCO1+g8BvwUZ6ArgCmxGQf4z7pfAf1j OXBw== 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=mhM/mauBJck6aHRYgcqqFsOsl1B7ZjHg4yd8uzUwQDE=; b=NTOygFR5tNinaiFF5BEsUQXbcaNC291Y4suHNTYCqLAgeRM1GTFoqryWPgr3tU0hVe IAFTwmuDgFYao5RMl8GfG2jbzRFkwYcFpqGswO2MTjoZQVBhEmauR3e3UL/2IZr23dU2 4is9WSFrAfPzzi5+fLAHz0M3dRUjhkn4wVJ91XxXIuFNxyuKtIJ+QAEodSrOLLlMBgRX DoWCx/DxBeVFSM5m2Q9DnHQ7TOxSNZtyRxVV5nwZSphnn3nHxWUejD7zP1bc6CF9lJK1 4Gz6JkacGZjM4Vz/aIB1hURhylxA9LLqCIuMNwvxBgetn50uHlNTgj6NA1JfFJfrC3TF JzMg== X-Gm-Message-State: AHQUAubR48S/rI0NmycbbpFzvhxd8y/69MPj7Fspp6b+H5ZZrrBPszsa s7cDeyN88qfJ4Kjjb8eqepbN6rXzL2IPgTxPfOc= X-Received: by 2002:a19:ab19:: with SMTP id u25mr13349710lfe.64.1550494031281; Mon, 18 Feb 2019 04:47:11 -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:16:58 +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 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 > > --- > > 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! >