summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-02-27 17:13:53 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-01 01:01:25 +0100
commit04b73469750050290cb0a773e7ecf2358d65f6d5 (patch)
treee382a30c798a6714e9cfaf764ead1cb00cd403fd /kernel/power
parentde377b3972729f00ee236ae4a97393e282ffe391 (diff)
downloadop-kernel-dev-04b73469750050290cb0a773e7ecf2358d65f6d5.zip
op-kernel-dev-04b73469750050290cb0a773e7ecf2358d65f6d5.tar.gz
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')
-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 7d4b7ff..1ca7531 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;
OpenPOWER on IntegriCloud