ARM: fix some sparse errors in generic ARM code
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 8 Jan 2011 12:05:09 +0000 (12:05 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Feb 2011 17:24:12 +0000 (17:24 +0000)
arch/arm/kernel/return_address.c:37:6: warning: symbol 'return_address' was not declared. Should it be static?
arch/arm/kernel/setup.c:76:14: warning: symbol 'processor_id' was not declared. Should it be static?
arch/arm/kernel/traps.c:259:1: warning: symbol 'die_lock' was not declared. Should it be static?
arch/arm/vfp/vfpmodule.c:156:6: warning: symbol 'vfp_raise_sigfpe' was not declared. Should it be static?

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cputype.h
arch/arm/kernel/return_address.c
arch/arm/kernel/traps.c
arch/arm/vfp/vfpmodule.c

index 20ae96cc0020eeead866c3a2f983c3297a668034..ed5bc9e05a4e176e0c86c89762afeb770efc998c 100644 (file)
@@ -23,6 +23,8 @@
 #define CPUID_EXT_ISAR4        "c2, 4"
 #define CPUID_EXT_ISAR5        "c2, 5"
 
+extern unsigned int processor_id;
+
 #ifdef CONFIG_CPU_CP15
 #define read_cpuid(reg)                                                        \
        ({                                                              \
@@ -43,7 +45,6 @@
                __val;                                                  \
        })
 #else
-extern unsigned int processor_id;
 #define read_cpuid(reg) (processor_id)
 #define read_cpuid_ext(reg) 0
 #endif
index df246da4ceca251a375165fcafa4c1e5ff718b92..0b13a72f855dc4a6723603f937977da000d6a864 100644 (file)
@@ -9,6 +9,7 @@
  * the Free Software Foundation.
  */
 #include <linux/module.h>
+#include <linux/ftrace.h>
 
 #if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND)
 #include <linux/sched.h>
index ee57640ba2bb50ddff8400cccfb6c01603a0da87..7f53c3651c58283345094d8a9631b666d24bb04c 100644 (file)
@@ -256,7 +256,7 @@ static int __die(const char *str, int err, struct thread_info *thread, struct pt
        return ret;
 }
 
-DEFINE_SPINLOCK(die_lock);
+static DEFINE_SPINLOCK(die_lock);
 
 /*
  * This function is protected against re-entrancy.
index 0797cb528b46339113c355dcc416c6e241e95dd5..25b89d817105db171d5731527acd0b239b0859c7 100644 (file)
@@ -153,7 +153,7 @@ static struct notifier_block vfp_notifier_block = {
  * Raise a SIGFPE for the current process.
  * sicode describes the signal being raised.
  */
-void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
+static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
 {
        siginfo_t info;