Skip to contentSkip to conversation

kernel/power: Declare variables as static

PATCH New Pushkar Jambhlekar 1 participant 1 message May 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/power: Declare variables as static

Fixing sparse warnings: 'symbol not declared. Should it be static?' Variables need to be static since they have not used outside of the files.

---
 kernel/power/snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/snapshot.c +1 -1
index 3b1e0f3..fa46606 100644
@@ -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)
Signature · 1 line
2.7.4