* [PATCH] kernel/power: Declare variables as static
@ 2017-05-11 5:01 Pushkar Jambhlekar
0 siblings, 0 replies; only message in thread
From: Pushkar Jambhlekar @ 2017-05-11 5:01 UTC (permalink / raw)
To: Rafael J. Wysocki, Pavel Machek, Len Brown
Cc: linux-pm, linux-kernel, Pushkar Jambhlekar
Fixing sparse warnings: 'symbol not declared. Should it be static?' Variables need to be
static since they have not used outside of the files.
Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
---
kernel/power/snapshot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 3b1e0f3..fa46606 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -1425,7 +1425,7 @@ static unsigned int nr_meta_pages;
* Numbers of normal and highmem page frames allocated for hibernation image
* before suspending devices.
*/
-unsigned int alloc_normal, alloc_highmem;
+static unsigned int alloc_normal, alloc_highmem;
/*
* Memory bitmap used for marking saveable pages (during hibernation) or
* hibernation image pages (during restore)
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-11 5:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 5:01 [PATCH] kernel/power: Declare variables as static Pushkar Jambhlekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).