Browse Source

powerpc: Ensure global functions include their prototype

Fix a number of places where global functions were not including
their prototype. This ensures the prototype and the function match.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Anton Blanchard 11 years ago
parent
commit
1217d34b53

+ 1 - 0
arch/powerpc/kernel/smp.c

@@ -52,6 +52,7 @@
 #endif
 #endif
 #include <asm/vdso.h>
 #include <asm/vdso.h>
 #include <asm/debug.h>
 #include <asm/debug.h>
+#include <asm/kexec.h>
 
 
 #ifdef DEBUG
 #ifdef DEBUG
 #include <asm/udbg.h>
 #include <asm/udbg.h>

+ 2 - 0
arch/powerpc/mm/slice.c

@@ -30,9 +30,11 @@
 #include <linux/err.h>
 #include <linux/err.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 #include <linux/export.h>
 #include <linux/export.h>
+#include <linux/hugetlb.h>
 #include <asm/mman.h>
 #include <asm/mman.h>
 #include <asm/mmu.h>
 #include <asm/mmu.h>
 #include <asm/spu.h>
 #include <asm/spu.h>
+#include <asm/hugetlb.h>
 
 
 /* some sanity checks */
 /* some sanity checks */
 #if (PGTABLE_RANGE >> 43) > SLICE_MASK_SIZE
 #if (PGTABLE_RANGE >> 43) > SLICE_MASK_SIZE

+ 1 - 0
arch/powerpc/oprofile/backtrace.c

@@ -12,6 +12,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/compat.h>
 #include <asm/compat.h>
+#include <asm/oprofile_impl.h>
 
 
 #define STACK_SP(STACK)		*(STACK)
 #define STACK_SP(STACK)		*(STACK)
 
 

+ 1 - 0
arch/powerpc/platforms/powernv/subcore.c

@@ -24,6 +24,7 @@
 #include <asm/smp.h>
 #include <asm/smp.h>
 
 
 #include "subcore.h"
 #include "subcore.h"
+#include "powernv.h"
 
 
 
 
 /*
 /*

+ 1 - 0
arch/powerpc/platforms/pseries/dlpar.c

@@ -17,6 +17,7 @@
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/of.h>
 #include <linux/of.h>
 #include "offline_states.h"
 #include "offline_states.h"
+#include "pseries.h"
 
 
 #include <asm/prom.h>
 #include <asm/prom.h>
 #include <asm/machdep.h>
 #include <asm/machdep.h>

+ 1 - 0
arch/powerpc/platforms/pseries/hotplug-memory.c

@@ -20,6 +20,7 @@
 #include <asm/machdep.h>
 #include <asm/machdep.h>
 #include <asm/prom.h>
 #include <asm/prom.h>
 #include <asm/sparsemem.h>
 #include <asm/sparsemem.h>
+#include "pseries.h"
 
 
 unsigned long pseries_memory_block_size(void)
 unsigned long pseries_memory_block_size(void)
 {
 {

+ 1 - 0
arch/powerpc/platforms/pseries/pci.c

@@ -29,6 +29,7 @@
 #include <asm/pci-bridge.h>
 #include <asm/pci-bridge.h>
 #include <asm/prom.h>
 #include <asm/prom.h>
 #include <asm/ppc-pci.h>
 #include <asm/ppc-pci.h>
+#include "pseries.h"
 
 
 #if 0
 #if 0
 void pcibios_name_device(struct pci_dev *dev)
 void pcibios_name_device(struct pci_dev *dev)