powerpc/swsusp: Include suspend.h to silence sparse warnings
authorTobin C. Harding <me@tobin.cc>
Mon, 6 Mar 2017 08:25:31 +0000 (19:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Mar 2017 08:02:49 +0000 (19:02 +1100)
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>
arch/powerpc/kernel/swsusp.c

index 6ae9bd5086a4a44bdb4f058f63264af2714068bc..0050b2d2ff7ad004f7192f782615eb1ef5678562 100644 (file)
@@ -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>