kernel/power: Declare variables as static
Subsystems (2)
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.
Signed-off-by Pushkar Jambhlekar <[email protected]>
--- kernel/power/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/snapshot.c +1 -1
@@ -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