Message ID | 20211215064559.2843555-1-peng.fan@oss.nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] arm64: mm: apply __ro_after_init to memory_limit | expand |
On Wed, 15 Dec 2021 at 07:55, Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote: > > From: Peng Fan <peng.fan@nxp.com> > > This variable is only set during initialization, so mark with > __ro_after_init. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> > --- > arch/arm64/mm/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index a8834434af99..db63cc885771 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn) > } > EXPORT_SYMBOL(pfn_is_map_memory); > > -static phys_addr_t memory_limit = PHYS_ADDR_MAX; > +static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; > > /* > * Limit the memory size that was specified via FDT. > -- > 2.25.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On 15.12.21 07:45, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > This variable is only set during initialization, so mark with > __ro_after_init. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > arch/arm64/mm/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index a8834434af99..db63cc885771 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn) > } > EXPORT_SYMBOL(pfn_is_map_memory); > > -static phys_addr_t memory_limit = PHYS_ADDR_MAX; > +static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; > > /* > * Limit the memory size that was specified via FDT. > Reviewed-by: David Hildenbrand <david@redhat.com>
On Wed, 15 Dec 2021 14:45:58 +0800, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > This variable is only set during initialization, so mark with > __ro_after_init. > > Applied to arm64 (for-next/core), thanks! [1/2] arm64: mm: apply __ro_after_init to memory_limit https://git.kernel.org/arm64/c/bb425a759847
On 12/15/21 12:15 PM, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > This variable is only set during initialization, so mark with > __ro_after_init. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > arch/arm64/mm/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index a8834434af99..db63cc885771 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn) > } > EXPORT_SYMBOL(pfn_is_map_memory); > > -static phys_addr_t memory_limit = PHYS_ADDR_MAX; > +static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; > > /* > * Limit the memory size that was specified via FDT. > Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index a8834434af99..db63cc885771 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn) } EXPORT_SYMBOL(pfn_is_map_memory); -static phys_addr_t memory_limit = PHYS_ADDR_MAX; +static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; /* * Limit the memory size that was specified via FDT.