Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2078185pxk; Mon, 14 Sep 2020 04:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvvpmcTVnXup/6MEQ4B/MopuVEP3DKUqnl5CqF916JGuaYJbWUK/RwZY4epV1myl8ejZWB X-Received: by 2002:a17:906:354c:: with SMTP id s12mr14528672eja.370.1600082190091; Mon, 14 Sep 2020 04:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600082190; cv=none; d=google.com; s=arc-20160816; b=mJJmnthbwjgMj9daFtVQpWTNige/4cKRUJ7XciMWY8pVDCFIwxAi62Iu90BU5OY4+U sm9N8OwerW4EzWqyFMGMyoZbmAcma3EIo95nrOUmPlBEm0SNKwBqByGnQfd1dgBsiSWk 12McsrKNMQpoN/r82K3NjhoP76754NNaG6qubvrlK0ZARpTB2X3b/4ouzpGdlUp5UFcG OSDdQ0N2jCsfPZxx8ZSYYfaxSI+caz/L2+d48AfmoWAvaZjLe1+AOxhnnT9iYj8b9FCq eNbMEnl5Q2rXyu5/QGyaMkbx+WyuxEe838Y0vDBjbxa1pwnQAhWkTIxyvp4NyDGAn2F7 yz6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1/86V2dOU6RicKB92zN7ipw92zxZLtyXTzIQXkKxExY=; b=GLfvpP7Sbsohq3gyARIpxcBmqYNHGJGa0AEHYrh8SjnpP0lq3msHtlVef1kCIHZwZ7 jYDq3yEHC/OVA4CZWgNfD45dw+OMGu4hM9KK1/hvLdWi5KhMnu3//vjN2A8UXqU6h6Nh JT9x7RY1aolKc1KwB0XWhf3VuCRlc2CymbsWx6PnHMk88oJQgQ/rHSJWDm9jXH50oKaK vp/ojjLcWwI4SFn9pSjxC4gH8ILChXwjSI9rmJUInPwGtuRbz6cgaIWsbQfzgc1gc8Gg sg9hYjmTtbA0FgdsMUJ+1p8dv2IjmAlynWh67OTxiCw9GQTcSUjJstp18hjwOKNSF88D G0Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si7534325ejh.697.2020.09.14.04.16.08; Mon, 14 Sep 2020 04:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726033AbgINLNO (ORCPT + 99 others); Mon, 14 Sep 2020 07:13:14 -0400 Received: from elvis.franken.de ([193.175.24.41]:38261 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgINLMW (ORCPT ); Mon, 14 Sep 2020 07:12:22 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kHmOg-0003Bp-00; Mon, 14 Sep 2020 13:11:46 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 2D173C0FA5; Mon, 14 Sep 2020 13:08:56 +0200 (CEST) Date: Mon, 14 Sep 2020 13:08:56 +0200 From: Thomas Bogendoerfer To: Youling Tang Cc: Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Remove unused BOOT_MEM_INIT_RAM Message-ID: <20200914110856.GA8974@alpha.franken.de> References: <1599875955-9207-1-git-send-email-tangyouling@loongson.cn> <06109011-21af-ad1d-41cb-18542b9b77f6@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <06109011-21af-ad1d-41cb-18542b9b77f6@loongson.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 06:39:51PM +0800, Youling Tang wrote: > > > On 09/14/2020 12:32 PM, Jiaxun Yang wrote: > > > > > >在 2020/9/12 9:59, Youling Tang 写道: > >>Commit a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") left > >>the BOOT_MEM_INIT_RAM unused, remove it. > >> > >>Signed-off-by: Youling Tang > >>--- > >> arch/mips/include/asm/bootinfo.h | 1 - > >> 1 file changed, 1 deletion(-) > >> > >>diff --git a/arch/mips/include/asm/bootinfo.h > >>b/arch/mips/include/asm/bootinfo.h > >>index 147c932..39196ae 100644 > >>--- a/arch/mips/include/asm/bootinfo.h > >>+++ b/arch/mips/include/asm/bootinfo.h > >>@@ -91,7 +91,6 @@ extern unsigned long mips_machtype; > >> #define BOOT_MEM_RAM 1 > >> #define BOOT_MEM_ROM_DATA 2 > >> #define BOOT_MEM_RESERVED 3 > >>-#define BOOT_MEM_INIT_RAM 4 > > > >If you're willing to remove that you'd better turn the memtype struct > >into a enum. > > > Hi Jiaxun, > Do you mean to modify it as follows? > > enum boot_memtype { > BOOT_MEM_RAM, > BOOT_MEM_ROM_DATA, > BOOT_MEM_RESERVED, > BOOT_MEM_NOMAP, > }; that's not worth the effort, we should convert from add_memory_region to direct memblock_XXX calls and get rid of MIPS boot mem completely. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]