Commit 24cfd8ca authored by Dou Liyang's avatar Dou Liyang Committed by Thomas Gleixner
Browse files

x86/platform/UV: Mark memblock related init code and data correctly

parse_mem_block_size() and mem_block_size are only used during init. Mark
them accordingly.

Fixes: d7609f42

 ("x86/platform/UV: Add kernel parameter to set memory block size")
Signed-off-by: default avatarDou Liyang <>
Signed-off-by: default avatarThomas Gleixner <>
Cc: Mike Travis <>
Cc: Andrew Banman <>
parent acb18725
......@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
/* 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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment