From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0F38C07E99 for ; Thu, 8 Jul 2021 04:47:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 49C6E61CC8 for ; Thu, 8 Jul 2021 04:47:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49C6E61CC8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csgroup.eu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2A9AF6B0011; Thu, 8 Jul 2021 00:47:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 259D96B005D; Thu, 8 Jul 2021 00:47:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1223F6B006C; Thu, 8 Jul 2021 00:47:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0147.hostedemail.com [216.40.44.147]) by kanga.kvack.org (Postfix) with ESMTP id E50DA6B0011 for ; Thu, 8 Jul 2021 00:47:05 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 36D80824C458 for ; Thu, 8 Jul 2021 04:47:05 +0000 (UTC) X-FDA: 78338186010.16.74D9864 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by imf12.hostedemail.com (Postfix) with ESMTP id 6F0D710000A2 for ; Thu, 8 Jul 2021 04:47:04 +0000 (UTC) Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4GL3ft2dwGzB9Dt; Thu, 8 Jul 2021 06:47:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4RNY8SeyMsjD; Thu, 8 Jul 2021 06:47:02 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4GL3ft1jnKzB9Dg; Thu, 8 Jul 2021 06:47:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D47158B7D3; Thu, 8 Jul 2021 06:47:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 3MAroupGgIg8; Thu, 8 Jul 2021 06:47:01 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 238AC8B767; Thu, 8 Jul 2021 06:46:59 +0200 (CEST) Subject: Re: [patch 26/54] powerpc: convert to setup_initial_init_mm() To: Andrew Morton , benh@kernel.crashing.org, jrdr.linux@gmail.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, mpe@ellerman.id.au, torvalds@linux-foundation.org, wangkefeng.wang@huawei.com References: <20210708010851.Nu7rJ1_vQ%akpm@linux-foundation.org> From: Christophe Leroy Message-ID: <2d98012a-1701-4ebc-02dc-9f8f1337c0a3@csgroup.eu> Date: Thu, 8 Jul 2021 06:46:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210708010851.Nu7rJ1_vQ%akpm@linux-foundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf12.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.236.30 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu X-Rspamd-Server: rspam02 X-Rspam-User: nil X-Rspamd-Queue-Id: 6F0D710000A2 X-Stat-Signature: r7chizsttb1yw1n64togpczrsg6u5ctw X-HE-Tag: 1625719624-425034 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Le 08/07/2021 =C3=A0 03:08, Andrew Morton a =C3=A9crit=C2=A0: > From: Kefeng Wang > Subject: powerpc: convert to setup_initial_init_mm() >=20 > Use setup_initial_init_mm() helper to simplify code. >=20 > Note klimit is (unsigned long) _end, with new helper, will use _end > directly. The patch has been rebased because klimit doesn't exist anymore so the ab= ove sentence should be droped. >=20 > Link: https://lkml.kernel.org/r/20210608083418.137226-12-wangkefeng.wan= g@huawei.com > Signed-off-by: Kefeng Wang > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Souptick Joarder > Cc: Christophe Leroy > Signed-off-by: Andrew Morton > --- >=20 > arch/powerpc/kernel/setup-common.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) >=20 > --- a/arch/powerpc/kernel/setup-common.c~powerpc-convert-to-setup_initi= al_init_mm > +++ a/arch/powerpc/kernel/setup-common.c > @@ -926,10 +926,7 @@ void __init setup_arch(char **cmdline_p) > =20 > klp_init_thread_info(&init_task); > =20 > - init_mm.start_code =3D (unsigned long)_stext; > - init_mm.end_code =3D (unsigned long) _etext; > - init_mm.end_data =3D (unsigned long) _edata; > - init_mm.brk =3D (unsigned long)_end; > + setup_initial_init_mm(_stext, _etext, _edata, _end); > =20 > mm_iommu_init(&init_mm); > irqstack_early_init(); > _ >=20