linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: fix sparse warning, include kernel header
@ 2017-03-06  8:25 Tobin C. Harding
  2017-03-10  0:40 ` Daniel Axtens
  2017-03-21 11:36 ` Michael Ellerman
  0 siblings, 2 replies; 4+ messages in thread
From: Tobin C. Harding @ 2017-03-06  8:25 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Paul Mackerras, Benjamin Herrenschmidt, linuxppc-dev,
	Tobin C. Harding

Spares emits two symbol not declared warnings. The two functions in
question are declared already in a kernel header.

Add include directive to include kernel header.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
---

github issue: #37 Fix sparse errors

 arch/powerpc/kernel/swsusp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c
index 6ae9bd5..0050b2d 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>
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-21 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06  8:25 [PATCH] powerpc: fix sparse warning, include kernel header Tobin C. Harding
2017-03-10  0:40 ` Daniel Axtens
2017-03-11 22:19   ` Tobin C. Harding
2017-03-21 11:36 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).