mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 20:46:41 +07:00
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: d7609f4210
("x86/platform/UV: Add kernel parameter to set memory block size")
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Cc: Mike Travis <mike.travis@hpe.com>
Cc: Andrew Banman <andrew.banman@hpe.com>
Link: https://lkml.kernel.org/r/20180730075947.23023-1-douly.fnst@cn.fujitsu.com
This commit is contained in:
parent
acb1872577
commit
24cfd8ca1d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user