From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH V4 00/26] mm/mmap: Drop __SXXX/__PXXX macros from across platforms Date: Thu, 23 Jun 2022 22:21:44 -0700 Message-ID: References: <20220624044339.1533882-1-anshuman.khandual@arm.com> <33bdac1e-207a-192b-bf43-818abfa49fe1@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XKGzX6yE/I0P1qBeyrVkY5BnT7ywpbw4nd39m0yxTVs=; b=qJTUdComYPWwc4 8G47FdET9PSELRkBPyLA6ApFmAcmKEbRNHHK2W86rMj4j7yF0rF9s91Cfh/m2+iQvMrVgqQty6Gru ltaYuOl/+a2tg7PZP9jwcLPBgaJVWswEToka37/Foqc4muhPXyYAbh+zemRkDyx/PgoGj5nuepWgC WfVohcqHQYJd1hIM/g+c3iZvUYaKg7fxcu7O84C7BTIvWqU4Cn5PLJ2Fqb92O7STLVqTuhplPtjoK z+c0hRyAilHLvZgtIL899dhYDDbx9TSSz1D+M33+poPFRQzpGWeA4MLsn6I1rB8eLFwMf404QWFAs 8kBeoMMa8jda4n6oITPg==; Content-Disposition: inline In-Reply-To: <33bdac1e-207a-192b-bf43-818abfa49fe1@arm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+glpr-linux-riscv=m.gmane-mx.org@lists.infradead.org To: Anshuman Khandual Cc: Christoph Hellwig , linux-mm@kvack.org, christophe.leroy@csgroup.eu, Andrew Morton , linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, x86@kernel.org, openrisc@lists.librecores.org, linux-xtensa@linux-xtensa.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-parisc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-um@lists.infradead.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org On Fri, Jun 24, 2022 at 10:50:33AM +0530, Anshuman Khandual wrote: > > On most architectures this should be const now, only very few ever > > modify it. > > Will make it a 'static const pgprot_t protection_map[16] __ro_after_init' > on platforms that do not change the protection_map[] even during boot. No need for __ro_after_init when it is already declarated const.