Skip to content

Commit

Permalink
x86/platform/UV: Mark memblock related init code and data correctly
Browse files Browse the repository at this point in the history
parse_mem_block_size() and mem_block_size are only used during init. Mark
them accordingly.

Fixes: d7609f4 ("x86/platform/UV: Add kernel parameter to set memory block size")
Signed-off-by: Dou Liyang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: Mike Travis <[email protected]>
Cc: Andrew Banman <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
douliyang authored and KAGA-KOKO committed Jul 30, 2018
1 parent acb1872 commit 24cfd8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/apic/x2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
EXPORT_SYMBOL(uv_hub_info_version);

/* Default UV memory block size is 2GB */
static unsigned long mem_block_size = (2UL << 30);
static unsigned long mem_block_size __initdata = (2UL << 30);

/* Kernel parameter to specify UV mem block size */
static int parse_mem_block_size(char *ptr)
static int __init parse_mem_block_size(char *ptr)
{
unsigned long size = memparse(ptr, NULL);

Expand Down

0 comments on commit 24cfd8c

Please sign in to comment.