Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4751048ybi; Tue, 30 Jul 2019 07:31:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDXWUq8Pd/1LzBxivVPI3GQM78Xsw5hTsjbdYj07Ana+GQpYfcyfhXb2wDZqcNrbxjw0NR X-Received: by 2002:a65:4808:: with SMTP id h8mr108187755pgs.22.1564497102078; Tue, 30 Jul 2019 07:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564497102; cv=none; d=google.com; s=arc-20160816; b=UDrPHDA6ADbEkqJWyzPJzIOK8tFKKl11A6J7bEawA9sXf4LOzgjIHkzn1T49g+oUbY rI+ZR0DzmRfn3lg9TH4fnnF0QRRkRDaUb8/86wdmWTA8uuQgCT9CRZXOhPRtKP4vhbho 1SNOHkbPQXt99wgUBzKsiFQARUWRt34rQSOpRh0K9+cGtl6JG93+8Am4UpClmbrnC4pQ oLlN3jWxhG2odJJbwRsQkmk3Ah9UaCOE+ffs1KtIpV1ryBEKkp9s9rAOnYMv2X+Brhq0 VDj+CL2EOizW456F63WNjJ0BFnsdp5fMnel7fVA+FrWkdnOn0ig7fS85b6v/77Fo98LV kpcQ== 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=DZWL9OiKf52d+BBqsHJdau9fdTiHTJp5b+TS66YMC0A=; b=qj/JH+WEMmRSeS25/qg8XHK/m8v952LT6acN69vQuqFCjhYlbd7EUhXBNqCdDez4oJ mmGVhikmZsZmjfpte/Ge0iFwmdlwYGI4gRtATwSeFPEDycL1XFknDbmMRE9R1opsK44q PoTC8Cr/ypTFB9VakTsuJXyGlz1HH4Ah7C3Ra1jVVf6Be8L1olM2d015wBu1oZT4qKF2 El2U5VGO7S/GuJDbIKpSsc/va5ebv0FIj9mwBA6Dv8wC3qeaDrs3tMe/cU6pfH4eWJsD vgW7EsMwFYCmRvlDusB2VOek4mokApzd20Q+poxNa/B5rvyFjGQzXtSL0UILv6ws6af/ /Eig== 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 j67si17944372plb.195.2019.07.30.07.31.27; Tue, 30 Jul 2019 07:31:42 -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 S1730470AbfG3H0N (ORCPT + 99 others); Tue, 30 Jul 2019 03:26:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3215 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729748AbfG3HZi (ORCPT ); Tue, 30 Jul 2019 03:25:38 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2F3E277AC9FFDE2842E2; Tue, 30 Jul 2019 15:25:35 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 30 Jul 2019 15:25:24 +0800 From: Jason Yan To: , , , , , , , , CC: , , , , , , , Jason Yan Subject: [PATCH v2 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c Date: Tue, 30 Jul 2019 15:42:17 +0800 Message-ID: <20190730074225.39544-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190730074225.39544-1-yanaijie@huawei.com> References: <20190730074225.39544-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..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