summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/swsusp.c
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-03-06 19:25:31 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-03-20 19:02:49 +1100
commit1fc439c81312cd27aed553964c0d9d48946582ce (patch)
tree9e5d2dfaf19c133ebbfea672fc5f0baa4623afc3 /arch/powerpc/kernel/swsusp.c
parent017614a5d6c09ec9e0dc3fd46a5018c20b407d92 (diff)
powerpc/swsusp: Include suspend.h to silence sparse warnings
Sparse emits two symbol not declared warnings for swsusp.c. The two functions, save_processor_state() and restore_processor_state() are declared already in suspend.h, so include it. Signed-off-by: Tobin C. Harding <me@tobin.cc> Reviewed-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/swsusp.c')
-rw-r--r--arch/powerpc/kernel/swsusp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c
index 6ae9bd5086a4..0050b2d2ff7a 100644
--- a/arch/powerpc/kernel/swsusp.c
+++ b/arch/powerpc/kernel/swsusp.c
@@ -10,6 +10,7 @@
*/
#include <linux/sched.h>
+#include <linux/suspend.h>
#include <asm/current.h>
#include <asm/mmu_context.h>
#include <asm/switch_to.h>