[PATCH V4 00/26] mm/mmap: Drop __SXXX/__PXXX macros from across platforms
Christoph Hellwig
hch at infradead.org
Thu Jun 23 22:21:44 PDT 2022
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.
More information about the linux-riscv
mailing list