Re: [PATCH V4 00/26] mm/mmap: Drop __SXXX/__PXXX macros from across platforms

From: Christoph Hellwig
Date: Fri Jun 24 2022 - 01:21:58 EST


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.