Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5491077ybh; Wed, 7 Aug 2019 06:54:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo8VQZKwzkMu5DvEj8Sjc2Z1zDAt0oZ/ufBHv3II9HJxT0iP7OyiaKjrV6YjkhkaOATTm5 X-Received: by 2002:a17:902:b591:: with SMTP id a17mr7989389pls.96.1565186072610; Wed, 07 Aug 2019 06:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565186072; cv=none; d=google.com; s=arc-20160816; b=tBnuXXa2dqAh83BvBSn8Rqwrkmnld8XKt1nxFcxmhN0WNu+78hkCMB2n7balSGWNDg nJIqKtFuSx6y/oBMPHK+IqGgId+aorqtiV4QfyzrNWNcqk3HeK9N82+0NVb8UrxvoZzy G7Zem+E33RlilVGM1w+f8l8dduP7iGP7RJhBrZ4OohvDIVp+RPCvfJm9n9w0esHWk6X5 Svkw4CQo+JdzuaF/TrKCUFJYyFnsRXaSet5h6x7t+XN70ibPPNCDvGiAFGyzR5YH5lm1 cIuft3Bfct4GFNimtE4PY78k8hKinvYqJ0Dg4Vsz2CBmpAiIELMyAixASFVCIiBvGQ1x HVEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=vl6XyjBPeh/QcaNc1k7hM3M5C5nvY1XkUkgcNN8xtAA=; b=iuWTnf06uGJTGZDkzMB9Zx8nO9kJzBlOkf2f4EnsObhzCgImUp2BNIA0wIYH4LimDp 1NOvpuOiobuB22IXYiNX1oDre0yrs8l6BMSqsVAtIVHvm/kP2HS5NGScTn0CTD0mBTYe iKcQHl4JiGCcxAoU8F5Zlw5/WfPOPQZrBIBlyGOQ2oXcJI2tlicBeAhxkTP+4M2fii9K haZ6MHJJKyJ4309nrQsjsA4PJ8sCXqlVIyv3/BNr8Zz383zBCKlokUWqgi4ZVZEpb1Gz EnWJgVV0xHbWaQWCiaThvYHR0+wbFhtiIIM2NBsamilMH3Gl1tFQfDvAZ/fqYh0+FlLt Dkuw== 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 l66si17167905plb.337.2019.08.07.06.54.17; Wed, 07 Aug 2019 06:54:32 -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 S2388028AbfHGNCf (ORCPT + 99 others); Wed, 7 Aug 2019 09:02:35 -0400 Received: from ozlabs.org ([203.11.71.1]:44341 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387799AbfHGNCf (ORCPT ); Wed, 7 Aug 2019 09:02:35 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 463Wr74L2Pz9sBF; Wed, 7 Aug 2019 23:02:31 +1000 (AEST) From: Michael Ellerman To: Jason Yan , linuxppc-dev@lists.ozlabs.org, diana.craciun@nxp.com, christophe.leroy@c-s.fr, benh@kernel.crashing.org, paulus@samba.org, npiggin@gmail.com, keescook@chromium.org, kernel-hardening@lists.openwall.com Cc: linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, yebin10@huawei.com, thunder.leizhen@huawei.com, jingxiangfeng@huawei.com, fanchengyang@huawei.com, zhaohongjiang@huawei.com, Jason Yan Subject: Re: [PATCH v5 02/10] powerpc: move memstart_addr and kernstart_addr to init-common.c In-Reply-To: <20190807065706.11411-3-yanaijie@huawei.com> References: <20190807065706.11411-1-yanaijie@huawei.com> <20190807065706.11411-3-yanaijie@huawei.com> Date: Wed, 07 Aug 2019 23:02:26 +1000 Message-ID: <874l2tuo0t.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason Yan writes: > 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); Would be nice if these can be __ro_after_init ? cheers