lkml.org 
[lkml]   [2010]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 04/23] Hibernation: Move root_swap declaration.
Date
Move the declaration of root_swap in preparation for the
next patch.

Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
---
kernel/power/swap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 4e5f6e3..25090ed 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -44,6 +44,8 @@ struct swap_map_page {
sector_t next_swap;
};

+static unsigned short root_swap = 0xffff;
+
struct swsusp_header {
char reserved[PAGE_SIZE - 21 - sizeof(sector_t) - sizeof(int)];
char write_speed;
@@ -199,7 +201,6 @@ int swsusp_swap_in_use(void)
* General things
*/

-static unsigned short root_swap = 0xffff;
struct block_device *hib_resume_bdev;
char __nosavedata write_speed, read_speed;

--
1.7.0.4


\
 
 \ /
  Last update: 2010-09-27 20:11    [W:0.191 / U:26.148 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site