Browse Source

sparc32: fix sparse warnings in process_32.h

Fix following warnings:
process_32.c:67:6: warning: symbol 'arch_cpu_idle' was not declared. Should it be static?
process_32.c:257:16: warning: symbol 'sparc_do_fork' was not declared. Should it be static?
process_32.c:411:5: warning: symbol 'dump_fpu' was not declared. Should it be static?

Add missing includes and add one missing prototype.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Sam Ravnborg 11 years ago
parent
commit
8bdd5a1bdb
2 changed files with 10 additions and 0 deletions
  1. 6 0
      arch/sparc/kernel/kernel.h
  2. 4 0
      arch/sparc/kernel/process_32.c

+ 6 - 0
arch/sparc/kernel/kernel.h

@@ -95,6 +95,12 @@ extern void floppy_hardint(void);
 extern unsigned long sun4m_cpu_startup;
 extern unsigned long sun4m_cpu_startup;
 extern unsigned long sun4d_cpu_startup;
 extern unsigned long sun4d_cpu_startup;
 
 
+/* process_32.c */
+asmlinkage int sparc_do_fork(unsigned long clone_flags,
+                             unsigned long stack_start,
+                             struct pt_regs *regs,
+                             unsigned long stack_size);
+
 #else /* CONFIG_SPARC32 */
 #else /* CONFIG_SPARC32 */
 #endif /* CONFIG_SPARC32 */
 #endif /* CONFIG_SPARC32 */
 #endif /* !(__SPARC_KERNEL_H) */
 #endif /* !(__SPARC_KERNEL_H) */

+ 4 - 0
arch/sparc/kernel/process_32.c

@@ -10,6 +10,7 @@
 
 
 #include <stdarg.h>
 #include <stdarg.h>
 
 
+#include <linux/elfcore.h>
 #include <linux/errno.h>
 #include <linux/errno.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/sched.h>
@@ -23,6 +24,7 @@
 #include <linux/delay.h>
 #include <linux/delay.h>
 #include <linux/pm.h>
 #include <linux/pm.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
+#include <linux/cpu.h>
 
 
 #include <asm/auxio.h>
 #include <asm/auxio.h>
 #include <asm/oplib.h>
 #include <asm/oplib.h>
@@ -38,6 +40,8 @@
 #include <asm/unistd.h>
 #include <asm/unistd.h>
 #include <asm/setup.h>
 #include <asm/setup.h>
 
 
+#include "kernel.h"
+
 /* 
 /* 
  * Power management idle function 
  * Power management idle function 
  * Set in pm platform drivers (apc.c and pmc.c)
  * Set in pm platform drivers (apc.c and pmc.c)