diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-01-03 05:00:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-03 05:00:38 -0800 |
commit | ed4a04b50ed5b7958d79b10cae085933a61b665c (patch) | |
tree | 6544c30dc68a2f006b1ee738269a0061b15dbe45 /kernel | |
parent | 118267551d38e6eeecd84dcd0533021717344cf8 (diff) | |
download | history-ed4a04b50ed5b7958d79b10cae085933a61b665c.tar.gz |
[PATCH] swsusp: Small cleanups
This adds statics at few places and fixes stale references to pmdisk.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/swsusp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index afa6529b9a21b7..790b05e207629a 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c @@ -104,14 +104,14 @@ static int pagedir_order __nosavedata = 0; #define SWSUSP_SIG "S1SUSPEND" -struct swsusp_header { +static struct swsusp_header { char reserved[PAGE_SIZE - 20 - sizeof(swp_entry_t)]; swp_entry_t swsusp_info; char orig_sig[10]; char sig[10]; } __attribute__((packed, aligned(PAGE_SIZE))) swsusp_header; -struct swsusp_info swsusp_info; +static struct swsusp_info swsusp_info; /* * XXX: We try to keep some more pages free so that I/O operations succeed @@ -174,7 +174,7 @@ static int is_resume_device(const struct swap_info_struct *swap_info) resume_device == MKDEV(imajor(inode), iminor(inode)); } -int swsusp_swap_check(void) /* This is called before saving image */ +static int swsusp_swap_check(void) /* This is called before saving image */ { int i, len; |