powerpc/sparse: Include headers containing prototypes
authorDaniel Axtens <dja@axtens.net>
Wed, 18 May 2016 01:16:51 +0000 (11:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jun 2016 12:40:19 +0000 (22:40 +1000)
Sometimes headers that provide prototypes for functions are
accidentally omitted from the files that define the functions.

Fix a couple of times that occurs.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/pseries/power.c

index f1adc3c4f4ca5a051b947f2902deeede7610f768..1b55c7864291d851197611053d2d6b9af43cb6b6 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/cpu.h>
 #include <linux/notifier.h>
 #include <linux/topology.h>
+#include <linux/profile.h>
 
 #include <asm/ptrace.h>
 #include <linux/atomic.h>
index c26eadde434c9a3f0ffa53257324b75bf12b1c96..a4a0b57d1d81fbeaf85abf3e22fc6bc993d9e86c 100644 (file)
@@ -27,6 +27,8 @@
 #include <linux/init.h>
 #include <asm/machdep.h>
 
+#include "pseries.h"
+
 unsigned long rtas_poweron_auto; /* default and normal state is 0 */
 
 static ssize_t auto_poweron_show(struct kobject *kobj,