Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115988pxj; Sat, 29 May 2021 03:49:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwLwYW4tCM4SdnpMCpOLd2cpf9Jg++rygMkJE0q1ItKYULcwkSsFN138bNpDg6nLf2Cg2b X-Received: by 2002:a6b:ec19:: with SMTP id c25mr10171671ioh.181.1622285378982; Sat, 29 May 2021 03:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285378; cv=none; d=google.com; s=arc-20160816; b=Xn6MA/jR3Hbm02AJob7oJeK8yMzs2Hli36NP1B/6KBIAVZOiRxmIGfDEX4Ckne6nWF XwCRENDVA3CbfbzaGW1eudFMgEGzURhOJc99EP9qtC4rfTudoIpG50LceEdgHDtwCGW8 NBY5ff57x29BGun12TjemrJ6fO9atyGU6En3p9y6HH+wBbR+IksRTUNFHKI+bwOXFPYi 2je/Roal9PPXaTogWeXb+Yv5+/TM8G5NYyzVwSqINxgkUd4SV1X5leoMDCWAgeKKcuVm A+aKA1/AMo52GUnHjS09cZ/UsLTR7lslgUyYJQTtLhijAJReBE8TGlMdewbiExdbRF7u +XGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=L+n0ECsXUfUuaj0H9JeNudy2KQD/Ki0luslpnCWctHM=; b=RAwhsyEoejzyengKFTCcJx8TcZTA0e3IEgKjIWOMuODywGvBgy3NML41I8Kx37Wvnc kQyGXXVcZjE3jf6enABIHb5nC8KZk58d8qoySGWISFmzdd1+AcUY9UzOUlRNiFFwj0Vf Mh3Ky2Pm7+TI8rm8yq4HuEHs5PR1ReTlyDk+p9yDpA5o/+QJYyakFkgEdJUZO45cTXMX At1dR0VN0dbbQFEExXvbZgJ9pRwvs9KA9E4d8mMH9Zz9Xt+CefvJzyV4TV8L9HLvQ/sw s/Vqx4VfYcz1zveEASgEEmWQ4svdp9SDW2VaB5KClZpe/i7dPkbgQTdPuIqKr5LUs1zy AYLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si7770257jat.121.2021.05.29.03.49.26; Sat, 29 May 2021 03:49:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbhE2Kse (ORCPT + 99 others); Sat, 29 May 2021 06:48:34 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2098 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbhE2Krn (ORCPT ); Sat, 29 May 2021 06:47:43 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FsdQJ2ZhzzWpwN; Sat, 29 May 2021 18:41:28 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 18:46:06 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 18:46:05 +0800 From: Kefeng Wang To: Andrew Morton , CC: Kefeng Wang , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Subject: [PATCH 13/15] s390: convert to setup_initial_init_mm() Date: Sat, 29 May 2021 18:55:02 +0800 Message-ID: <20210529105504.180544-14-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210529105504.180544-1-wangkefeng.wang@huawei.com> References: <20210529105504.180544-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use setup_initial_init_mm() helper to simplify code. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org Signed-off-by: Kefeng Wang --- arch/s390/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 146d01700a55..3feb9c5972eb 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -1096,10 +1096,7 @@ void __init setup_arch(char **cmdline_p) ROOT_DEV = Root_RAM0; - init_mm.start_code = (unsigned long) _text; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = (unsigned long) _end; + setup_initial_init_mm(_text, _etext, _edata, _end); if (IS_ENABLED(CONFIG_EXPOLINE_AUTO)) nospec_auto_detect(); -- 2.26.2