Messages in this thread Patch in this message | | | Date | Sun, 12 Dec 2004 21:00:04 +0100 | From | Adrian Bunk <> | Subject | [2.6 patch] swsusp: make some code static |
| |
The patch below makes some needlessly global code static.
diffstat output: kernel/power/swsusp.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc2-mm4-full/kernel/power/swsusp.c.old 2004-12-12 03:05:03.000000000 +0100 +++ linux-2.6.10-rc2-mm4-full/kernel/power/swsusp.c 2004-12-12 03:07:44.000000000 +0100 @@ -78,8 +78,8 @@ extern int is_head_of_free_region(struct page *); /* Variables to be preserved over suspend */ -int pagedir_order_check; -int nr_copy_pages_check; +static int pagedir_order_check; +static int nr_copy_pages_check; extern char resume_file[]; static dev_t resume_device; @@ -105,14 +105,14 @@ #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 @@ -175,7 +175,7 @@ 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; @@ -422,7 +422,7 @@ struct highmem_page *next; }; -struct highmem_page *highmem_copy = NULL; +static struct highmem_page *highmem_copy = NULL; static int save_highmem_zone(struct zone *zone) { @@ -785,7 +785,7 @@ return 0; } -int suspend_prepare_image(void) +static int suspend_prepare_image(void) { unsigned int nr_needed_pages = 0; int error; @@ -1061,12 +1061,12 @@ return error; } -int bio_read_page(pgoff_t page_off, void * page) +static int bio_read_page(pgoff_t page_off, void * page) { return submit(READ, page_off, page); } -int bio_write_page(pgoff_t page_off, void * page) +static int bio_write_page(pgoff_t page_off, void * page) { return submit(WRITE, page_off, page); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |