Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1530436pxj; Sat, 29 May 2021 17:26:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ4+7HKKRIPcOMeo1/Wh4RHqfJrTp5R0xTbHAhGR5nCw1xIJv6Zoxhsfod75IOJMa8AzFV X-Received: by 2002:a17:907:377:: with SMTP id rs23mr15509533ejb.12.1622334363182; Sat, 29 May 2021 17:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622334363; cv=none; d=google.com; s=arc-20160816; b=n7A3XadzSBNvXWzOL1A4lTk5Y5hS43G2biLAKkUhayCO0f0rToX+MoSSQwa3Kwz+wU dvVtv4vcDNdREEIaf/8h3kAdvsCPChFkRG2QkSfRDrwSz/a0hOSohrNNTn1W7LcMPJei jBEAmQ0kY0l5Cb8Kd4o2BOwv6gdqSQoz8wbbCGbunf8XL7W7fWkk8DHCyYyZtjH1Qqsk +n3AZf4oC52qH1OAVCbc3dcTBZUaY9BWQzo20xkRQWq56RIW9phC43fm6vB1V5gJHihb D4gFAnilrIqDruYXlxcSKjeq1VrYgg712vRRSi+xA4PT8U17+ye25Bnn0Ld/gG9lARZQ GOAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EFNsnJROa6RyQHJB9MJ8Sll1FLFfmScMm06mdhKQUiM=; b=xN5uV3d6mqz+2ZkCpZ2o2314MP9UsVW8MByiulAnBuOfRhqN5osY6Dh719/WSgOmTV QnzmEPe6W+SLMC73uqtCzMUMlFQ27VTa0IKhlxLbjVzGNY9yJPxsgFVpbV/NJ2SCh7IO vc/BZTIlaTORy+0FeB+2U06Db245CiBAEycKYHUMpZ8vS+aY97myzaFBaokNzU4z23Kp /Cx2poHJ3f+JloaINQcKZTE0NPt59W+6kyDZhJspNjgDa5PA3HVj+31LTYvwz+3YhJ+l zwnqRURsOwJ4wppEj0pCl796BEXmVxf6tfcL1j1QJBalxqo1B0ZHrd8CaPtO1RrrQASD cEcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tvuVKUC9; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si8593803edj.445.2021.05.29.17.24.49; Sat, 29 May 2021 17:26:03 -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=@kernel.org header.s=k20201202 header.b=tvuVKUC9; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229581AbhE3AY4 (ORCPT + 99 others); Sat, 29 May 2021 20:24:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:53776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhE3AY4 (ORCPT ); Sat, 29 May 2021 20:24:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2EE3D6109E; Sun, 30 May 2021 00:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622334199; bh=l7fJ1rvgich0C3XV0SqFIRoaMcntzInwVPHPG2ByWUA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tvuVKUC9i7AtzrAGyPQhmQq4cjZnBICps6GSMn9R1r2rdCYx7WK75y1QRYvN3D78Z Xnb9P5bNfW7jgw8oxSew0mQ4QNDFTXqwELh3f2pOd+pkkNhlzAYp3pg59FnEu9RGP9 yMu6OTRkefFzcz2AM48MHcXs+kWSv1Tjwg3cHKffVsd82b9Dm1BiBCStiHETVcVQv8 ai3Osw/z7+rzwaNMvuJdjil67mTXRb5bggtrD0T4lW0m2oNf0Vibd0U2FLUR5caki9 G6TgXcaTBdIdeG01EedyQjXJCZ/prQlJfbHQgPi9Jc8Kmh0ZCJeelb/aNL1LgEaolP +sCijt3jOrWSQ== Received: by mail-lf1-f52.google.com with SMTP id q7so11077246lfr.6; Sat, 29 May 2021 17:23:19 -0700 (PDT) X-Gm-Message-State: AOAM530dSiVUeuiAEm9k5gEsVz6WGHDNNGt/t/YYgxiK7EuTNbAR88A1 mvQqzccQaVeQZipqsKMaeS68+eWXj/wResvDhpg= X-Received: by 2002:a05:6512:3993:: with SMTP id j19mr10942351lfu.231.1622334197446; Sat, 29 May 2021 17:23:17 -0700 (PDT) MIME-Version: 1.0 References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> <20210529105504.180544-6-wangkefeng.wang@huawei.com> In-Reply-To: <20210529105504.180544-6-wangkefeng.wang@huawei.com> From: Guo Ren Date: Sun, 30 May 2021 08:23:05 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/15] csky: convert to setup_initial_init_mm() To: Kefeng Wang Cc: Andrew Morton , Linux Kernel Mailing List , linux-csky@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Guo Ren Thx On Sat, May 29, 2021 at 6:46 PM Kefeng Wang wrote: > > Use setup_initial_init_mm() helper to simplify code. > > Cc: Guo Ren > Cc: linux-csky@vger.kernel.org > Signed-off-by: Kefeng Wang > --- > arch/csky/kernel/setup.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/csky/kernel/setup.c b/arch/csky/kernel/setup.c > index e93bc6f74432..c64e7be2045b 100644 > --- a/arch/csky/kernel/setup.c > +++ b/arch/csky/kernel/setup.c > @@ -78,10 +78,7 @@ void __init setup_arch(char **cmdline_p) > pr_info("Phys. mem: %ldMB\n", > (unsigned long) memblock_phys_mem_size()/1024/1024); > > - 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); > > parse_early_param(); > > -- > 2.26.2 > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/