Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5060230ybh; Tue, 6 Aug 2019 23:41:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9G94hX2wlp2Y71hPHErAU/V0R8Y1LtpUFVlgEczDmWCoBgx4d/miccxs7VDJLYr3sRuQu X-Received: by 2002:a62:7d96:: with SMTP id y144mr7783251pfc.156.1565160073765; Tue, 06 Aug 2019 23:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565160073; cv=none; d=google.com; s=arc-20160816; b=R5tDqyMTSW6Cci9TyCdzGPMGHJhnHKINSgyvDiplvQx+VayROGGvM7Fkdv9i//2ItI uUGiRoLEzGsegF761B6tndyXBJApmMIFaQwayt7tXxMYO+W7oIKkh54KFUunnnH7cIjg DHND7v8PAIob165RPp3A5I7sGabk/zkPtFmz6ZRgSZGrKPt0MTnpwNgUL92x+2X83+N2 J/M47fVjIdSGLEjASURO2nWumGiyKo9T9f8bCfXjRWZ+OCkaUTBZlAmuPPHL2zY7YuJs LTkF9oM4GcDHIFb+fe2vrq47rvae4j4nqHwLKAKgbHkBUo9ns3y6XcEZEWuSNgFJSjxD CpWQ== 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=nYwQVlAjbtv2hkG7GIRg1ep34BE7HHpkdmbCyicVh9JDyaTVIIEWwqoXaSa8IgkceN B0bCotIU6OAvvAOB9WZvuI4v43GMT2qpmr3uO07WUt8G6u66lzS5RlI7y3UV3S7YDZYI 7u63Tn9Q0nY40cre8Qli5/KUYJU8OpmUV64BMoyE3eTO5XneKa677L+kLZe40B2IaKHf d4Mx9lSqv1J1PZ2Xqzjm8/pZ+BSqe3csuo7sc69rHtebzxeOebKGks+U6m5ldyUqSdP6 24HPO5u2Jxc5IKtSfEtAeExBbbL6OOXYXISkN+0xJfo7ZILWt71dO1HMiuP0l05pzqrb Ks2g== 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 j190si51111113pge.92.2019.08.06.23.40.58; Tue, 06 Aug 2019 23:41:13 -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 S1727523AbfHGGkL (ORCPT + 99 others); Wed, 7 Aug 2019 02:40:11 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3770 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727400AbfHGGkK (ORCPT ); Wed, 7 Aug 2019 02:40:10 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DA71562AAB0D9D0636C3; Wed, 7 Aug 2019 14:40:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Wed, 7 Aug 2019 14:39:57 +0800 From: Jason Yan To: , , , , , , , , CC: , , , , , , , Jason Yan Subject: [PATCH v5 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c Date: Wed, 7 Aug 2019 14:56:58 +0800 Message-ID: <20190807065706.11411-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190807065706.11411-1-yanaijie@huawei.com> References: <20190807065706.11411-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