Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1220040pxj; Sat, 29 May 2021 06:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGxJjJABXhLO145hpFyk/WMcj8nEmdOWIAFFqZHITjxLg/sYzBWueBuJyDPIJr2PbdMt00 X-Received: by 2002:a17:906:2f0d:: with SMTP id v13mr523434eji.321.1622296351470; Sat, 29 May 2021 06:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622296351; cv=none; d=google.com; s=arc-20160816; b=AAzUYoBLV400VOoThiAE5D3/d6rl+hilnNZBT+2bPcsFDUMkA1ZyHUYUMZyRC2NmMM puJQpi0pG2Ubv0rM9pdWzS/CN8y8cakfdt+zkq+wv8EkQYkGhS5KZ3H9Yb+fdxv9UyQt 2LNRPt3S+S2yJ61X7xwSZj1bmEUBL3g3K4bUlLz/00dMq3x+WImqDpoYu718H3+2pKto T/z/uowi8A+LQS6Am4GthKtU8xLn4leCTOvWs2ixx3gqUnyh9djTg4LlNd4IiCCeDBMI MhJ3Xi8IemOJNzgQBdrwsaON+UgivxhEB0xFySM6fY2m0lWmAwYuc7wWUsH6/k1odcRq qeSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WzEVVVOFU2I7+S66Q1KlYufG1IO5O8QdDvfcHceNhHU=; b=0tYuCTDLjuPAsvhJH5/+U3LWn2KbU26rxEvbeNmStVXfwvhlSYjHixnMyYSgNFlrLi Aih3e+R5bdm6BgqDndXUiDohJSYN+dFlTIVomcpcf3GT8Qi7aIaDT3KGfNZMJ5dQosMn cYniKYijd7EqFIvi4A3CngFjeb0AIwpEpQHw0t8fCt5fI2vef04mRcdgs/5mjWz5EJma VmfMFtrEZ4OhC0Bef39OSYbkuM63F+nWP4CrRteQB4XnlCvcnOJc8r4B03kEVxwHvPJM yHq+M1M2g3sOFwmrwPLi4qvHVhr0joymCS3YwpRgE+UhMXYZaklS52PF3H590RmVI+no Qq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="awnqRG/A"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr2si7463470ejc.274.2021.05.29.06.51.47; Sat, 29 May 2021 06:52:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="awnqRG/A"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbhE2NuJ (ORCPT + 99 others); Sat, 29 May 2021 09:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbhE2NuI (ORCPT ); Sat, 29 May 2021 09:50:08 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49442C061574 for ; Sat, 29 May 2021 06:48:32 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id x188so5417284pfd.7 for ; Sat, 29 May 2021 06:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WzEVVVOFU2I7+S66Q1KlYufG1IO5O8QdDvfcHceNhHU=; b=awnqRG/Ay1+3Na89+JwutFPnFTHtypg6wCTQM0kZ8dkfOEy1PiwhZpmCZzZfR/2t4x Rvn7h+pkZA1O/jnVUbDbLd8Dg9Wd9vy1VmMkUVuk1AN+7Pg5FbFqWJqjugz9dKq5tiHI VZX2BE8jdyrjQMy8Nwe9eS4gyiCSn93RAe5HCmENv5JO/S9CCDaUDb4o+SWabYDf2K3M 228dh3yka4qfzZzwO8dbEKfsRAZTajljJdX3VcRmh1ZeBRs0Yd4jQsDy7B+hwBktP8wm J0XnPTwjyHuNQ8XRiDrhmfVteO9HwKF6LLgCdylcOuprkQmBGfurPrx0FUQpobWszATN Z1yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WzEVVVOFU2I7+S66Q1KlYufG1IO5O8QdDvfcHceNhHU=; b=knEos6xHPqkDYbRS7K1nFntv2M4OpmAjyQaJoujCb4REXLSBFlXDYePw2Ff0DdZzvY 4Dm3wFZs4XCAGtFL31DEr9xnQfLJlW/Sq7gyoiXhzc5EnFV4KY/IVMaEHEAXnUuYSlK+ K8utzQTUgWhQTu+d5QOuPU4y8wLx4iU5onjAJIG4PJ1Zai4lJomNjX6937cDoBLptyFT mO439uD5/2FL5dM7q+FkjHofUkm4yIhi2NdU3u39BTJh8lQWGUbB+anVJC4kjCzJ4qMj wTM/ZLvf5ENG5uIjSfN9/xKCRvk27x+GkF6GbYoIwKHsseO37rzQj2HE6RnQPZ8X4ju7 4AxA== X-Gm-Message-State: AOAM531aURosG5JqB6x98cltI1SAk+zAL1x6qAP5SGVs1KhSAN4QUstC dAaZVUU+qhu4mTw4aAvqlE0= X-Received: by 2002:a63:1465:: with SMTP id 37mr13893915pgu.113.1622296111506; Sat, 29 May 2021 06:48:31 -0700 (PDT) Received: from localhost (g176.222-224-212.ppp.wakwak.ne.jp. [222.224.212.176]) by smtp.gmail.com with ESMTPSA id w8sm7375325pgf.81.2021.05.29.06.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 06:48:30 -0700 (PDT) Date: Sat, 29 May 2021 22:48:28 +0900 From: Stafford Horne To: Kefeng Wang Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH 10/15] openrisc: convert to setup_initial_init_mm() Message-ID: References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> <20210529105504.180544-11-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210529105504.180544-11-wangkefeng.wang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 29, 2021 at 06:54:59PM +0800, Kefeng Wang wrote: > Use setup_initial_init_mm() helper to simplify code. > > Cc: Jonas Bonn > Cc: Stefan Kristiansson > Cc: Stafford Horne > Cc: openrisc@lists.librecores.org > Signed-off-by: Kefeng Wang Looks fine to me. Acked-by: Stafford Horne > --- > arch/openrisc/kernel/setup.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c > index c6f9e7b9f7cb..8ae2da6ac097 100644 > --- a/arch/openrisc/kernel/setup.c > +++ b/arch/openrisc/kernel/setup.c > @@ -293,10 +293,7 @@ void __init setup_arch(char **cmdline_p) > #endif > > /* process 1's initial memory region is the kernel code/data */ > - init_mm.start_code = (unsigned long)_stext; > - init_mm.end_code = (unsigned long)_etext; > - init_mm.end_data = (unsigned long)_edata; > - init_mm.brk = (unsigned long)_end; > + setup_initial_init_mm(_stext, _etext, _edata, _end); > > #ifdef CONFIG_BLK_DEV_INITRD > if (initrd_start == initrd_end) { > -- > 2.26.2 >