[PATCH] ARM: prima2: fix missing common.h include in hotplug.c

Ben Dooks ben.dooks at codethink.co.uk
Tue Jun 21 05:51:18 PDT 2016


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 at codethink.co.uk>
---
Cc: Barry Song <baohua at 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




More information about the linux-arm-kernel mailing list