summaryrefslogtreecommitdiffstats
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-02-27 12:43:53 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-01 01:01:25 +0100
commit04b73469750050290cb0a773e7ecf2358d65f6d5 (patch)
treee382a30c798a6714e9cfaf764ead1cb00cd403fd /kernel/power/power.h
parentPM / sleep: Asynchronous threads for suspend_late (diff)
downloadlinux-04b73469750050290cb0a773e7ecf2358d65f6d5.tar.xz
linux-04b73469750050290cb0a773e7ecf2358d65f6d5.zip
PM / sleep: Move prototype declaration to header file kernel/power/power.h
Move prototype declaration of function to header file kernel/power/power.h because it is used by more than one file. This eliminates the following warning in kernel/power/snapshot.c: kernel/power/snapshot.c:1588:16: warning: no previous prototype for ‘swsusp_save’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r--kernel/power/power.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h
index 7d4b7ffb3c1d..1ca753106557 100644
--- a/kernel/power/power.h
+++ b/kernel/power/power.h
@@ -49,6 +49,8 @@ static inline char *check_image_kernel(struct swsusp_info *info)
*/
#define SPARE_PAGES ((1024 * 1024) >> PAGE_SHIFT)
+asmlinkage int swsusp_save(void);
+
/* kernel/power/hibernate.c */
extern bool freezer_test_done;