PM / hibernate: Declare variables as static
authorPushkar Jambhlekar <pushkar.iit@gmail.com>
Thu, 11 May 2017 05:01:24 +0000 (10:31 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 May 2017 11:33:24 +0000 (13:33 +0200)
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>
kernel/power/snapshot.c

index d79a38de425a0d642834adb5e8ac68ba237db93d..a628cccafa4ac7dcc858140e53ab69f4ad15f7d8 100644 (file)
@@ -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)