Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp186808imj; Thu, 14 Feb 2019 18:14:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IbVc3Oi2VpmjIrBAGbAgO5ZTbRyOxFveYbRVFV3qtLVgwtroXwb+JX178FVjJ1mGR0xVt6A X-Received: by 2002:a17:902:8c81:: with SMTP id t1mr7672308plo.107.1550196868609; Thu, 14 Feb 2019 18:14:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550196868; cv=none; d=google.com; s=arc-20160816; b=w+b0Pf2Munw3kYIiHZf1aQhbKQUbYfcDKCfMPstq9ZmeU0WQQya9v1r/bqKFKB/XsT zKR8xIfuXcskP/xILxusPwGHKcqlS5MsvaMcid7FETvCp93PZOposXJGXzfxjLuAFgF/ O0g9krrEuTMdSHSmUwrw9ta3CzgpvnX9wYh6CELpBBzEUjtBaFhtPSVm/Ll9NPPNQAs7 Rrw3oQW2bxypnhz/vGkvnA4nRhrKSfvHeOBDIXaJrO1O67H8KlgReSj1LK2+BGYThHDr VYoqThozmJmaFoyfuq+lhY9xp9pO5bxvhCIQ9sVySHtbQvHfpIOlYaJ4nzhWz7ZJ2nri OaGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=65fCph2wVQLYLbAYl3Kh/IhOwVLd3uOG3Na/8tJTTl0=; b=wMYKM+if+h106GFTpwjfFDXyfizkMQumPRSUuigVu7vSfrDl0C7MgyHx8aIR7AbLRG hvsAH9cIgoBD6n/TqUI156iZTnU3O5siRF5wOIn0uTq1lghC8/Tt2ayHR8emOVNz8U1O IQgt63S9YudPVhf3oy6LGqqlbMcBTzcm7arJkyA4uMCKGgpQOzMvKzWHnSSYhg44m8Hl Oi33No8pJMtMujWH0U9DX8+sh6Ts+Xt4Yx5A1tr8zwBfHQVwIPkK5v4o5L9jOT+phDKg Oq3+EWKtEPg0uY7kiYBp+qlDYkuTDcPKV+haqfr9K+4l71RMls1sK52uZqeVknyqqWri IrKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=lLQgQe9B; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si4230889plb.415.2019.02.14.18.14.04; Thu, 14 Feb 2019 18:14:28 -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=@sifive.com header.s=google header.b=lLQgQe9B; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503223AbfBNUts (ORCPT + 99 others); Thu, 14 Feb 2019 15:49:48 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36956 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503209AbfBNUts (ORCPT ); Thu, 14 Feb 2019 15:49:48 -0500 Received: by mail-pg1-f195.google.com with SMTP id q206so3656843pgq.4 for ; Thu, 14 Feb 2019 12:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=65fCph2wVQLYLbAYl3Kh/IhOwVLd3uOG3Na/8tJTTl0=; b=lLQgQe9BdP6L/KKozxCy89gHttaXJ4MA/yuhOBLCl/O1eO8ekEikoBlRb07TggKmfT VEnZJpuB+R0alfezZ07DaC4KjxaWVhFw87+QptUw3Qfceuu+A4AqmvxsZpbt9TUicHg0 pIp0nAUSBY9GINxAhjuu7lkJv4M3cJfYaDkCYM+E7KxXxeADn7bOhq3P6BdJtOi9Set7 geGOodJQ42skGi7BhAPn2OSrGFUbhESwVHmVG7K3mUc/QqnryZ1A1g4gvHOsa+GHi8Wr 7v0wAKu9AsvGvisJ9miN0oRC+7goN7MaAvA0WXXEqzHznU5rKaZN10qjHoUKTWZ9V4Qs vxxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=65fCph2wVQLYLbAYl3Kh/IhOwVLd3uOG3Na/8tJTTl0=; b=uZFZAx3S5TCe0YzDkL1rnyDT3XFcP9e8HgwqjB0LSq/Ir6qxLj4B1PNEkb4F+L8Six CPbMM4cngB3zRefHr8uxAkErQLmhpu2eUl17nR0xmsssn9QW9ZK8JRlZrq5VOotv/Ogp bakhk5rQcOnv3j3nKBi7RcxlHCjloGrYlcXaVbh1DevnHAJcyR42ub6dyoCLQsEJzwTo 0SNLKbZV/Pt7HjuVEtyVsTLhHq6UX4g898peP+GiET4nsAnqR6GUOvzYJnHmCYGpUVaE 1yzK62IBB01i8nTE41FDrtNJImkqjqnzPQmH0cGWui+IVVyAgbFpXK1FZgqONBbIMx7n j1Bw== X-Gm-Message-State: AHQUAubxg++QzR06hS1HN3plRwDZoz6WzDrupGZFw7V0lZixCmox0PKQ dNDf35+iI5bbKRx2A8Ta6AT7gQ== X-Received: by 2002:a65:5c4b:: with SMTP id v11mr1788701pgr.333.1550177387393; Thu, 14 Feb 2019 12:49:47 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id l12sm3035910pgk.40.2019.02.14.12.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 12:49:45 -0800 (PST) Date: Thu, 14 Feb 2019 12:49:45 -0800 (PST) X-Google-Original-Date: Thu, 14 Feb 2019 12:47:37 PST (-0800) Subject: Re: [PATCH 4/4] riscv: switch over to generic free_initmem() In-Reply-To: <1550159977-8949-5-git-send-email-rppt@linux.ibm.com> CC: akpm@linux-foundation.org, Christoph Hellwig , rkuo@codeaurora.org, linux-arch@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, rppt@linux.ibm.com From: Palmer Dabbelt To: rppt@linux.ibm.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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!