Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1182751pxj; Sat, 29 May 2021 05:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyUUgGk0sQGbqDb+mmyqXiN/QT2B69dmVI7wSsa4Fpcg2+PcXlDXXSTK/YBFYtko/wbuuj X-Received: by 2002:a92:c7d3:: with SMTP id g19mr11241074ilk.144.1622292800458; Sat, 29 May 2021 05:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622292800; cv=none; d=google.com; s=arc-20160816; b=d+1HIKUCCMokLRx4W5pbqFxXoPdyIgFOphE2Fsg1L0uHtrCmR9oiIqbwTvvUE70DI2 SBhAFoupJAOBc0XobtvE0A3IzjXa3TMdOyWxAndM8hD+yrCZ0LEqVBW+q2dUZj4rWDTk xjjDga52UP9Gvyuu3PTLIJopAp0sqYaxIvTHAIODpN5ryaWGONkmaxJLPEFyTnRyL5B5 L/d6VxgPYJEsK4svf1Yvy7YOU/C/lLSqN+yqzsTD9Dt0+674ymhEoaM9xdy76w6T2C2H ZE6poq4QeLzExW4LA73E8JceVFw2wRIAoNj9mb33xQ6xw/oVzFaznD48ntfjU9TE2KW4 Zu0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=q2WQb6X7gSDL5fCT6m0PosKh8nct9yQ+snRn6XzZdWo=; b=iqSkHUKDAravM6ne7crKy6rjtpNC7S39mngzblJ/A1/oa9p2gu65v3z/b2xVOJMEWn RTuEO/2x22iTMTLNXnwDDS0CmRXfhXo3Y8z2ucMkmrA4rXkv3UOIz4RC0rpnPsM+jG/M 1tC8Es/DN/lueuNtnTS/39VWjQHjm7Jt9bjMIH2+qd3PYE7cZE7GjavB0g/vJuLjaJOb jIckLfY59I0kt3ELCTahnNgdD4nMTTIMTwVN+UF3FMyQvGwMH6b5E2et2aylEK70DVvn KUju5RLLpCO3c3tynme+GzO3OprdWwNX/SYLYRhsFcnX8W2hjszHlvaLyF7HzoE8S5FZ 0JxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fossix-org.20150623.gappssmtp.com header.s=20150623 header.b=ZWtID4dG; 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 j15si593082ilo.150.2021.05.29.05.52.54; Sat, 29 May 2021 05:53:20 -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=@fossix-org.20150623.gappssmtp.com header.s=20150623 header.b=ZWtID4dG; 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 S229666AbhE2Mr5 (ORCPT + 99 others); Sat, 29 May 2021 08:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbhE2Mr4 (ORCPT ); Sat, 29 May 2021 08:47:56 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD46C061574 for ; Sat, 29 May 2021 05:46:17 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id y15so5313222pfn.13 for ; Sat, 29 May 2021 05:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fossix-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=q2WQb6X7gSDL5fCT6m0PosKh8nct9yQ+snRn6XzZdWo=; b=ZWtID4dGN+4PWpIahT59tuqEjJOQ9mzTMM8RVS8nDJ/ffCdKr+3K4UjcevRdOMO3FZ aGdKJdrmA/YZNgz01LrkOfqYphzdKgTTVBGouUWx+yzWmVMk34XdSGY3y6WkPvKCwZEy b4wxKS1k0Xwdj7RzQHEFeDug8Tj9wTTii2hD6/Yb37/4Yuvdm+xY42JjiIQF9rpSuW/2 jn2CCKYYtw5Yh+DilXNpEhLgPPwhYNqGQpLaLC5+m0l67NqDirGQaOTHg/bdymQ17W/C /evXPcUFXVdCRFw+WTwf9dNFsEiWvIhK1oU+God+RChcDDZt87Fs/WBrUHQa3H95Omm1 0Y0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=q2WQb6X7gSDL5fCT6m0PosKh8nct9yQ+snRn6XzZdWo=; b=dnk3wk76NifnXde+w37JW+xVq15y2WnGmVbX7xQBVcug5uuk9LkEFtmC7rUUpPIWU5 OA8rTTeFn9z0xvAVqvTAzeqLi3sW5u4NbJl621KjwGlm/NAg77fPxbA53zPzXH4gBHi5 c+A344wVOeFSDwW9jK5Ctyun9aaKYnoXDmNzswtusK7RhzV3TtSMoF/wwGp/FXWTPd+9 +inTDFX/QcQznOsmeKbPG1CuIVPL0Pg8EtYcxNn5JVIQTmz65a/bDFBeH9mPpVwzi026 hT+c4B0ADYUKYS8pUSyxrFCTVW5pru8vnTeG7BNlrTKQL+CnyGDbIVFw/S0Hp7AgmvAb finQ== X-Gm-Message-State: AOAM532Tv/E5Nuf/CbFFnbk5qXJCnPtS5uNxIJ2MBDfbLh1nN3h2JnZ3 vlXDep/NKTWaCFcoQ1KQrxIuDgDo2D3J6A== X-Received: by 2002:a65:4689:: with SMTP id h9mr13808278pgr.347.1622292376296; Sat, 29 May 2021 05:46:16 -0700 (PDT) Received: from localhost ([103.21.79.4]) by smtp.gmail.com with ESMTPSA id i5sm1939012pfc.139.2021.05.29.05.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 05:46:15 -0700 (PDT) From: Santosh Sivaraj To: Kefeng Wang , Andrew Morton , linux-kernel@vger.kernel.org Cc: Kefeng Wang , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 11/15] powerpc: convert to setup_initial_init_mm() In-Reply-To: <20210529105504.180544-12-wangkefeng.wang@huawei.com> References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> <20210529105504.180544-12-wangkefeng.wang@huawei.com> Date: Sat, 29 May 2021 18:16:11 +0530 Message-ID: <87y2bxemi4.fsf@fossix.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kefeng Wang writes: > Use setup_initial_init_mm() helper to simplify code. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Kefeng Wang > --- > arch/powerpc/kernel/setup-common.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c > index 046fe21b5c3b..c046d99efd18 100644 > --- a/arch/powerpc/kernel/setup-common.c > +++ b/arch/powerpc/kernel/setup-common.c > @@ -928,10 +928,7 @@ void __init setup_arch(char **cmdline_p) > > klp_init_thread_info(&init_task); > > - init_mm.start_code = (unsigned long)_stext; > - init_mm.end_code = (unsigned long) _etext; > - init_mm.end_data = (unsigned long) _edata; > - init_mm.brk = klimit; > + setup_initial_init_mm(_stext, _etext, _edata, _end); This function definition is not visible for those who have subscribed only to linuxppc-dev mailing list. I had to do a web-search with the ID. Thanks, Santosh > > mm_iommu_init(&init_mm); > irqstack_early_init(); > -- > 2.26.2