Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5733955ybi; Wed, 31 Jul 2019 02:29:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEbdBudXdL9mOTnABTa/ngeIK47VRYEplftS3D7RYIOHYv8JYqCajDLdg7VUdLmSlkRyM9 X-Received: by 2002:a17:902:7791:: with SMTP id o17mr120956111pll.27.1564565366492; Wed, 31 Jul 2019 02:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564565366; cv=none; d=google.com; s=arc-20160816; b=Rppb8XVXwGnXgZD1V+fcM0Seo1AQZpy3KTwpsIby9Xwy5kxFta7tjSf5kxzltqligf SIzQxgYCPdAQFJfB3wYm4LHiwAQc2rcxmyeT34Vjr/1LxLtG3x9enWqsp4fIH+ogjd+F 86GuwZ5LVCr+Vk26XqWgFtK5yYSz2604JoX3XCsAlplG2sZhudnprRlVT4QaAkImfH8u e2v6nc42r0iKZS28ahsXxGDIe/mmjTS/4Z8lHlSh7J+Few7x3mROU1KmRBKj6pDmRh/L NavT2uBR4w2cI9B8xbK1hOCIFmzBitEJfKpmCze/HbA1b1uFzsxOBmnYyqa7JKYv7bzL 80wA== 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=EzDkjtosrEQh5AhiA4msWQGVnWwRJfx9u/hBjCqbVQw=; b=v3YckoMQe29jliwg5d+8B6HXhoWR3vCSADy7PWoXgEPlYRvIMlER5NcvOtN/gLEePB RBCvJuMxk+9N84fDf9+WyotBiGBdXGIoikkXr8Q/Teqj7+BymMON8ksOi+RaNhFpWDR9 YTpeGn6+FyxTTrRf/XNsbbPHJl6S3GIPpD6pxLYGreT9RqH8vkBodD7RQkROrHM27N8y D/vQts0isQabqcPzfxq7hPW08EyHywPUV4liTov7anfpbsX+kBzcqWQ7wVGQTWy6PNMv 5M9X2srf69hiQvcOqd+s3ajxgRZPqzGdgzcBDRx8T5gYYs92OOn2kq27TIlonio/wrfU QdxA== 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 s19si31152505pgm.291.2019.07.31.02.29.11; Wed, 31 Jul 2019 02:29:26 -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 S1728713AbfGaJ0V (ORCPT + 99 others); Wed, 31 Jul 2019 05:26:21 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3263 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728557AbfGaJ0U (ORCPT ); Wed, 31 Jul 2019 05:26:20 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6415EE926006C7F60C56; Wed, 31 Jul 2019 17:26:18 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Wed, 31 Jul 2019 17:26:10 +0800 From: Jason Yan To: , , , , , , , , CC: , , , , , , , Jason Yan Subject: [PATCH v3 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c Date: Wed, 31 Jul 2019 17:43:10 +0800 Message-ID: <20190731094318.26538-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190731094318.26538-1-yanaijie@huawei.com> References: <20190731094318.26538-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 --- 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