mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/boot/KASLR: Make local variable mem_limit static
@ 2018-07-30 13:44 zhong jiang
  2018-07-30 17:48 ` [tip:x86/boot] " tip-bot for zhong jiang
  0 siblings, 1 reply; 2+ messages in thread
From: zhong jiang @ 2018-07-30 13:44 UTC (permalink / raw)
  To: tglx, mingo; +Cc: x86, gregkh, linux-kernel

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>
---
 arch/x86/boot/compressed/kaslr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c
index 5aae509..d1e19f3 100644
--- a/arch/x86/boot/compressed/kaslr.c
+++ b/arch/x86/boot/compressed/kaslr.c
@@ -99,7 +99,7 @@ struct mem_vector {
 
 
 /* Store memory limit specified by "mem=nn[KMG]" or "memmap=nn[KMG]" */
-unsigned long long mem_limit = ULLONG_MAX;
+static unsigned long long mem_limit = ULLONG_MAX;
 
 
 enum mem_avoid_index {
-- 
1.7.12.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:x86/boot] x86/boot/KASLR: Make local variable mem_limit static
  2018-07-30 13:44 [PATCH] x86/boot/KASLR: Make local variable mem_limit static zhong jiang
@ 2018-07-30 17:48 ` tip-bot for zhong jiang
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for zhong jiang @ 2018-07-30 17:48 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, zhongjiang, gregkh, mingo, linux-kernel, hpa

Commit-ID:  5db1b1e1ee34871b1965b3f890e3ccbdb185fa52
Gitweb:     https://git.kernel.org/tip/5db1b1e1ee34871b1965b3f890e3ccbdb185fa52
Author:     zhong jiang <zhongjiang@huawei.com>
AuthorDate: Mon, 30 Jul 2018 21:44:33 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 30 Jul 2018 19:46:03 +0200

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

---
 arch/x86/boot/compressed/kaslr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
 
 /* Store memory limit specified by "mem=nn[KMG]" or "memmap=nn[KMG]" */
-unsigned long long mem_limit = ULLONG_MAX;
+static unsigned long long mem_limit = ULLONG_MAX;
 
 
 enum mem_avoid_index {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-30 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30 13:44 [PATCH] x86/boot/KASLR: Make local variable mem_limit static zhong jiang
2018-07-30 17:48 ` [tip:x86/boot] " tip-bot for zhong jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome