--- kernel/power/snapshot.c 2006-04-05 05:05:09.000000000 +0200 +++ kernel/power/snapshot.c 2006-04-05 11:10:42.300939552 +0200 @@ -35,8 +35,11 @@ struct pbe *pagedir_nosave; unsigned int nr_copy_pages; + +#ifdef CONFIG_SUSPEND2 extern int suspend2_running; void suspend_post_context_save(void); +#endif #ifdef CONFIG_HIGHMEM unsigned int count_highmem_pages(void) @@ -472,11 +475,12 @@ { unsigned int nr_pages; +#ifdef CONFIG_SUSPEND2 if (suspend2_running) { suspend_post_context_save(); return 0; } - +#endif pr_debug("swsusp: critical section: \n"); drain_local_pages();