diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-07-30 09:44:33 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-07-30 13:46:03 -0400 |
commit | 5db1b1e1ee34871b1965b3f890e3ccbdb185fa52 (patch) | |
tree | dd3ae7d6f57f61d1cc0de69d741acc29aa427f47 | |
parent | 747ff6265db4c2b77e8c7384f8054916a0c1eb39 (diff) |
x86/boot/KASLR: Make local variable mem_limit static
Fix the following sparse warning:
arch/x86/boot/compressed/kaslr.c:102:20: warning: symbol 'mem_limit' was not declared. Should it be static?
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <gregkh@linuxfoundation.org>
Link: https://lkml.kernel.org/r/1532958273-47725-1-git-send-email-zhongjiang@huawei.com
-rw-r--r-- | arch/x86/boot/compressed/kaslr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 531c9876f573..302517929932 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c | |||
@@ -102,7 +102,7 @@ static bool memmap_too_large; | |||
102 | 102 | ||
103 | 103 | ||
104 | /* Store memory limit specified by "mem=nn[KMG]" or "memmap=nn[KMG]" */ | 104 | /* Store memory limit specified by "mem=nn[KMG]" or "memmap=nn[KMG]" */ |
105 | unsigned long long mem_limit = ULLONG_MAX; | 105 | static unsigned long long mem_limit = ULLONG_MAX; |
106 | 106 | ||
107 | 107 | ||
108 | enum mem_avoid_index { | 108 | enum mem_avoid_index { |