Skip to content

Commit 0bae5fd

Browse files
PushkarJambhlekarrafaeljw
authored andcommitted
PM / hibernate: Declare variables as static
Fixing sparse warnings: 'symbol not declared. Should it be static?' Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 967b08c commit 0bae5fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/power/snapshot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ static unsigned int nr_meta_pages;
14221422
* Numbers of normal and highmem page frames allocated for hibernation image
14231423
* before suspending devices.
14241424
*/
1425-
unsigned int alloc_normal, alloc_highmem;
1425+
static unsigned int alloc_normal, alloc_highmem;
14261426
/*
14271427
* Memory bitmap used for marking saveable pages (during hibernation) or
14281428
* hibernation image pages (during restore)

0 commit comments

Comments
 (0)