From: Pushkar Jambhlekar Date: Thu, 11 May 2017 05:01:24 +0000 (+0530) Subject: PM / hibernate: Declare variables as static X-Git-Tag: MMI-PSA29.97-13-9~5469^2^3~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0bae5fd3330be0517fba697e6b228601d421fade;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git PM / hibernate: Declare variables as static Fixing sparse warnings: 'symbol not declared. Should it be static?' Signed-off-by: Pushkar Jambhlekar Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index d79a38de425a..a628cccafa4a 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -1422,7 +1422,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)