Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115175pxj; Sat, 29 May 2021 03:47:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy9FifdbBW91P2UgBLQvnZJq+7dovkLf9YSfjplCBi5Xo1WE3Bd7CRy8KRh8bxDxUYItnO X-Received: by 2002:a05:6e02:1b8f:: with SMTP id h15mr10676008ili.151.1622285270156; Sat, 29 May 2021 03:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285270; cv=none; d=google.com; s=arc-20160816; b=pGhK0ASyq2aezL54E8wFrZOMUEFkpj0TX7PeLtbSZV+1BL5z0nIoOfbmwrvWyVbGz7 RjyMbzSreBePdbfD/2iwiZyOloW5DcFLOF3kHeet3a/Iaks5GsauRsT1pN2vD/fvfGGK L3YkQTFvdp+Jwdfcm2b7/wtjri6JOiFsZitYJNQEYHwWiAjYmykavlwhzWUcbjlJYXaR ACyPwy7I6JYJaBj1qjvFNCxsw9ZtkC0PQU7OrrNv0wK/+9dzpHv7e47zEk6UFqH7Go+K FMjOukdeDHwHXrxvMaYpYLy4qzyaoMfwM35dTV/C80vnRhNjI+ur3TQx5hGQAedIguRX Ytmg== 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=xLXq/6uN0cA11sxiy1x+lrGbJrU9we7+VdQRYu/8AbU=; b=HqjTbrGooQsEnlyouOyEFOkzFpqURPTSFuGHiBnDzpBnWPeLehAKQDEYXFvu+Mweb1 UpdZOdacCylDkPeCvdNyPHnwafDXVBUZ7Y5Z4Fy+d5vIlN6b/B7gopPmrUMJUjr3RWs6 a9PUjFbeGnvrGz/YO+u8BzWMdrs4E2NFLsB78/G027SuUJ2+V981YuDVS6Mzj9G2krna nPunEoL/93JFKyzbwJQQMjC1vuo0FVU+fxovTXdLHs3RWWnYmhA8ZuStTu+Angff8vNs qXnI37YDZZXSa2xap0vmo3tAXlkL2vWP0hyYJy4+Gw3MWYZcetAyxiLQ4856Cx/vvmiQ bp8A== 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 i19si3302721ilj.131.2021.05.29.03.47.36; Sat, 29 May 2021 03:47:50 -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 S229871AbhE2KsM (ORCPT + 99 others); Sat, 29 May 2021 06:48:12 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2467 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbhE2Krm (ORCPT ); Sat, 29 May 2021 06:47:42 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FsdSG1PDyz67yG; Sat, 29 May 2021 18:43:10 +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:04 +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:04 +0800 From: Kefeng Wang To: Andrew Morton , CC: Kefeng Wang , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Subject: [PATCH 10/15] openrisc: convert to setup_initial_init_mm() Date: Sat, 29 May 2021 18:54:59 +0800 Message-ID: <20210529105504.180544-11-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: Jonas Bonn Cc: Stefan Kristiansson Cc: Stafford Horne Cc: openrisc@lists.librecores.org Signed-off-by: Kefeng Wang --- 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