Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp533971ybi; Wed, 17 Jul 2019 00:50:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlEagLPIDHF7j3j8FSucAcZv7SE6USQkNUgG0/tKqaH7Hmc5tXiekIzW1kVMX7Fpkr249O X-Received: by 2002:a17:902:6b85:: with SMTP id p5mr38816449plk.225.1563349807576; Wed, 17 Jul 2019 00:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563349807; cv=none; d=google.com; s=arc-20160816; b=Azv9sJbwulUXvbw736JKwrLfhmqr8SnbPrIcDdw5IZ3TWYC20RAoLWrzLkJkjMYJnl 1lpGoiMvj/c5rXzst4Sk9HTWcaBxQdDNE6UJDhnYf1wzUeQ5QnUZu4sbVLaqxvYKiWEC n+hfdi1TIdFihvBPitXjoY3h3aqcjIo6CnGZSnHRflHG7nYQDBFq+79RvRgT8MRoaqye R7UUXTd8HeClmoM83padyOjsv07ua61OLjYgrx9FYAHW2ChzXWgPs8iNQFGzdYcnfdy+ 1GtN+RkTn59PCX2mxw+XWyfsHsrGlOx6Q50NZgQBzseEUjsoQ4A/rfUaQdMBXDKa4rHM 2vyQ== 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=Fk/bOPFklDhsiUuhudLo8OQ6SqtwKBVh4PLAn8MseIM=; b=QfpKRtmNImjwxNmC45FcpQbmQZ8ZxE/bOvDO2BUdnusWi+jg7JZsqcy91ToNbKpWn2 iYQEPa5SU5HRVzmFkwgi4jAZ3PbAltt+eYVze4tUhHlj4dR819OQ7pdhPje4fDR1pNA4 Bgr8iza73nsEK74ekw/YM9HdhDXwXKfBJdtlCbF4h9qP+k6SGEjw15YNH4JlKUAPgVb9 ZFhqc0LPjZev0RDv0ptNlBPs7dRyc2H9CQJ+YGLPIoW1IbEtCsKhOPFMYzxdoAKHKS6w U47H8o4UlA3X3dKOyktufL6MT0nW9FqYpSRZTrEM+RnLZyRxOueMw5z3uRDiN1CjRikk N2jg== 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 31si21988595plz.290.2019.07.17.00.49.51; Wed, 17 Jul 2019 00:50:07 -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 S1728543AbfGQHt1 (ORCPT + 99 others); Wed, 17 Jul 2019 03:49:27 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37716 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727669AbfGQHtY (ORCPT ); Wed, 17 Jul 2019 03:49:24 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CA9759F90B10E1FD72CF; Wed, 17 Jul 2019 15:49:18 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 17 Jul 2019 15:49:12 +0800 From: Jason Yan To: , , , , , , , , CC: , , , , , , Jason Yan Subject: [RFC PATCH 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c Date: Wed, 17 Jul 2019 16:06:13 +0800 Message-ID: <20190717080621.40424-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190717080621.40424-1-yanaijie@huawei.com> References: <20190717080621.40424-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 --- 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..9273c38009cb 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(memstart_addr); +phys_addr_t kernstart_addr; +EXPORT_SYMBOL(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