Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115238pxj; Sat, 29 May 2021 03:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLEfRHJR1BV9nltZ3u/Qg+i4LD8wlf/XeOGEuMKAgM4R3GUVYoqS7Y7Pfip4gKe5W6Op8j X-Received: by 2002:a02:ac05:: with SMTP id a5mr12802284jao.89.1622285279307; Sat, 29 May 2021 03:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285279; cv=none; d=google.com; s=arc-20160816; b=vXKp/gK+PJSIRuc+4UXQx19gbtvtK8tTe8ym6GwfO4a3wlfXSHon81CoKaYUGTlTAd cncxMv24rOLUK+w5B0AH00Iz3pdYCJMJfztF96MPt9djkyT4QYRlYJZWQ7gz3PDg3enl Y7By6rmhTEqG2aHtOZWycdcsPt9jLq0StonW+qPBaZgwLpwPDzeZn2Q68OlpBSFDFEUL QUDtK9ismU3+5fvIU3OiG/YEgzkxfv167hEZ/vUlvJxA2jH3eoaSakfJVKJJYLfnva/D 8uT5KrerYjtLaXeLCZ4O5ch1YNREpdxAd1SvwJsihOslfbyK7C0UXnEpgzS52Z6EcljE uVfA== 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 :message-id:date:subject:cc:to:from; bh=mVKJXhjnGDB4PRBTgMcyCivAsieH58Ewn6j/2HFtEc0=; b=Bd0a0l+APi6G37ByaLu+IsTqDVjR9lmJKGifRoZLCIythz2dsI6u7vv/k3rIGG/lZr /ZkULN3SiDfZxqjrzvEEIWq+Boq86ZUkz9Ri9LuZoS0v3Ptweh2zKWYwL8QwWwGKVgKj GR4jSuwvZxuBSSBhJfXDQC4a3A77PT1lpmu0MXSvN9+Kxe3J8D2BfGcrfWja4l5pEVq8 PVCkfN9/NK1f5H6WYH+ClphPBnSvk6LtPK47bqNHs4+eSuYDrP2E3vkxWQ2wr+r2a3+E akkA5Fxroz2cwQ/13yCJN3pFbsVYxW3RN308hOl/uDACHV8Yxishxn7AAJVbrBAOajGr JkYA== 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 l10si8239147iow.11.2021.05.29.03.47.46; Sat, 29 May 2021 03:47:59 -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 S229642AbhE2Krj (ORCPT + 99 others); Sat, 29 May 2021 06:47:39 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2406 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhE2Kri (ORCPT ); Sat, 29 May 2021 06:47:38 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FsdRJ3vvJz66cm; Sat, 29 May 2021 18:42:20 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) 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:00 +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:00 +0800 From: Kefeng Wang To: Andrew Morton , CC: Kefeng Wang Subject: [PATCH 00/15] init_mm: setup init_mm text/data/brk by new setup_initial_init_mm() helper Date: Sat, 29 May 2021 18:54:49 +0800 Message-ID: <20210529105504.180544-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 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 Add setup_initial_init_mm() helper and use it to cleanup the text, data and brk setup code. Kefeng Wang (15): mm: add setup_initial_init_mm() helper arc: convert to setup_initial_init_mm() arm: convert to setup_initial_init_mm() arm64: convert to setup_initial_init_mm() csky: convert to setup_initial_init_mm() h8300: convert to setup_initial_init_mm() m68k: convert to setup_initial_init_mm() nds32: convert to setup_initial_init_mm() nios2: convert to setup_initial_init_mm() openrisc: convert to setup_initial_init_mm() powerpc: convert to setup_initial_init_mm() riscv: convert to setup_initial_init_mm() s390: convert to setup_initial_init_mm() sh: convert to setup_initial_init_mm() x86: convert to setup_initial_init_mm() arch/arc/mm/init.c | 5 +---- arch/arm/kernel/setup.c | 5 +---- arch/arm64/kernel/setup.c | 5 +---- arch/csky/kernel/setup.c | 5 +---- arch/h8300/kernel/setup.c | 5 +---- arch/m68k/kernel/setup_mm.c | 5 +---- arch/m68k/kernel/setup_no.c | 5 +---- arch/nds32/kernel/setup.c | 5 +---- arch/nios2/kernel/setup.c | 5 +---- arch/openrisc/kernel/setup.c | 5 +---- arch/powerpc/kernel/setup-common.c | 5 +---- arch/riscv/kernel/setup.c | 5 +---- arch/s390/kernel/setup.c | 5 +---- arch/sh/kernel/setup.c | 5 +---- arch/x86/kernel/setup.c | 5 +---- include/linux/mm_types.h | 10 ++++++++++ 16 files changed, 25 insertions(+), 60 deletions(-) -- 2.26.2