lkml.org 
[lkml]   [2021]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [PATCH 2/4] x86/mm: make kernel_physical_mapping_change() __init
Date
On Thu, 2021-11-11 at 13:02 +0200, Mike Rapoport wrote:
> From: Mike Rapoport <rppt@linux.ibm.com>
>
> kernel_physical_mapping_change() is __meminit although it is only
> called by
> __init function early_set_memory_enc_dec().
>
> Make kernel_physical_mapping_change() __init.
>
> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>

Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>

> ---
> arch/x86/mm/init_64.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
> index 36098226a957..9a24532d2b85 100644
> --- a/arch/x86/mm/init_64.c
> +++ b/arch/x86/mm/init_64.c
> @@ -794,7 +794,7 @@ kernel_physical_mapping_init(unsigned long
> paddr_start,
> * when updating the mapping. The caller is responsible to flush the
> TLBs after
> * the function returns.
> */
> -unsigned long __meminit
> +unsigned long __init
> kernel_physical_mapping_change(unsigned long paddr_start,
> unsigned long paddr_end,
> unsigned long page_size_mask)
\
 
 \ /
  Last update: 2021-11-11 21:48    [W:1.038 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site