Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2371038ybh; Sun, 4 Aug 2019 23:43:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh9MB4EyGRruqbXdvVU1/3r0OqXRru9sabJ3H9+Vp3WsFbaf8SxwD8glkbBENo4vEGed8n X-Received: by 2002:a17:90a:ad86:: with SMTP id s6mr16898696pjq.42.1564987424720; Sun, 04 Aug 2019 23:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564987424; cv=none; d=google.com; s=arc-20160816; b=e7SPKfQ3krae0KSPuZ4qrtoB3PFgBj9dL3P/kf4F0rGcrjS96d0Ygg4NoiwjaRj0Qy 16IzuARBtDjPC/9DYiTWTO4zdiO4Zi+D4rPSbgjq9u7ogsxgY39u4Pl2Ti1LQUPjg5IQ PnLp7/+KCeLBetM6yjQTbfJGoc4f2yb07/MxUinhOuV+JRSyW2iVsr0jHk+gj/D8HLoP tONGDjKBc855cpCWomCJvK+yjM7c3gUGu1cp66c8CwbK9hd3JUCJlS9i/3jBgTYNlhmg i2hwW4zWqWifrld0WYZ28EoVy56bn5kpuHOo1/QWmL2nnjpzFJqEB0qCsIKp6Yb0v0fj 32kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=eEVXct/OFMyQOtEBakk7FDEGeylRpKW08ny8INEYn6g=; b=VepJzqhjL5MgmbBgDKpdkm7yHGmjixBSlvn9yaQuNg8SPsnbsTpqQ1SAOOAvFqgpZz yNFrkofqbLEFZF4QNCE/DruqVCuoBvLNShfpBWdqNfZkHH6w/rqJvm+vVrd0nknfI0I9 zJ7aeXLq6bUJZYXy/e4phXWjC9ZYOdH3fiiZLzmL3jZXR4AolicswkIq4739CF2RlKar x/hl1j6E/j74o13Rk7wpzY01pAi58RvPkA59/e77ByFEyvtxOqvczCjMXUBKKf9/MXKb Rn60gxsPssYxEy2YQhRdK1aC3kELN8n/75/OQuTvT7hgUIpbfxvyzlNUlT+ehQ7siU9R ymJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si52658977pfr.200.2019.08.04.23.43.29; Sun, 04 Aug 2019 23:43:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbfHEGmo (ORCPT + 99 others); Mon, 5 Aug 2019 02:42:44 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:59414 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725992AbfHEGmo (ORCPT ); Mon, 5 Aug 2019 02:42:44 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2F7A7A7224D5A53CE50D; Mon, 5 Aug 2019 14:26:37 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Mon, 5 Aug 2019 14:26:27 +0800 From: Jason Yan To: , , , , , , , , CC: , , , , , , , Jason Yan Subject: [PATCH v4 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c Date: Mon, 5 Aug 2019 14:43:27 +0800 Message-ID: <20190805064335.19156-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190805064335.19156-1-yanaijie@huawei.com> References: <20190805064335.19156-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two variables are both defined in init_32.c and init_64.c. Move them to init-common.c. Signed-off-by: Jason Yan Cc: Diana Craciun Cc: Michael Ellerman Cc: Christophe Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Cc: Kees Cook Reviewed-by: Christophe Leroy Reviewed-by: Diana Craciun Tested-by: Diana Craciun --- arch/powerpc/mm/init-common.c | 5 +++++ arch/powerpc/mm/init_32.c | 5 ----- arch/powerpc/mm/init_64.c | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/mm/init-common.c b/arch/powerpc/mm/init-common.c index a84da92920f7..152ae0d21435 100644 --- a/arch/powerpc/mm/init-common.c +++ b/arch/powerpc/mm/init-common.c @@ -21,6 +21,11 @@ #include #include +phys_addr_t memstart_addr = (phys_addr_t)~0ull; +EXPORT_SYMBOL_GPL(memstart_addr); +phys_addr_t kernstart_addr; +EXPORT_SYMBOL_GPL(kernstart_addr); + static bool disable_kuep = !IS_ENABLED(CONFIG_PPC_KUEP); static bool disable_kuap = !IS_ENABLED(CONFIG_PPC_KUAP); diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index b04896a88d79..872df48ae41b 100644 --- a/arch/powerpc/mm/init_32.c +++ b/arch/powerpc/mm/init_32.c @@ -56,11 +56,6 @@ phys_addr_t total_memory; phys_addr_t total_lowmem; -phys_addr_t memstart_addr = (phys_addr_t)~0ull; -EXPORT_SYMBOL(memstart_addr); -phys_addr_t kernstart_addr; -EXPORT_SYMBOL(kernstart_addr); - #ifdef CONFIG_RELOCATABLE /* Used in __va()/__pa() */ long long virt_phys_offset; diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index a44f6281ca3a..c836f1269ee7 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c @@ -63,11 +63,6 @@ #include -phys_addr_t memstart_addr = ~0; -EXPORT_SYMBOL_GPL(memstart_addr); -phys_addr_t kernstart_addr; -EXPORT_SYMBOL_GPL(kernstart_addr); - #ifdef CONFIG_SPARSEMEM_VMEMMAP /* * Given an address within the vmemmap, determine the pfn of the page that -- 2.17.2