linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: prima2: fix missing common.h include in hotplug.c
@ 2016-06-21 12:51 Ben Dooks
  0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2016-06-21 12:51 UTC (permalink / raw)
  To: linux-arm-kernel

The sirfsoc_cpu_die() function is declared in common.h but
the header is not included in hotplug.c where is it defined.

Include common.h to fix the following sparse warning:

arch/arm/mach-prima2/hotplug.c:35:6: warning: symbol 'sirfsoc_cpu_die' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Barry Song <baohua@kernel.org>
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/mach-prima2/hotplug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-prima2/hotplug.c b/arch/arm/mach-prima2/hotplug.c
index a728c78..97ea2f5 100644
--- a/arch/arm/mach-prima2/hotplug.c
+++ b/arch/arm/mach-prima2/hotplug.c
@@ -12,6 +12,8 @@
 
 #include <asm/smp_plat.h>
 
+#include "common.h"
+
 static inline void platform_do_lowpower(unsigned int cpu)
 {
 	/* we put the platform to just WFI */
-- 
2.8.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-21 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 12:51 [PATCH] ARM: prima2: fix missing common.h include in hotplug.c Ben Dooks

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).