Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: fix some sparse errors in generic ARM code

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>

+5 -3
+2 -1
arch/arm/include/asm/cputype.h
··· 23 23 #define CPUID_EXT_ISAR4 "c2, 4" 24 24 #define CPUID_EXT_ISAR5 "c2, 5" 25 25 26 + extern unsigned int processor_id; 27 + 26 28 #ifdef CONFIG_CPU_CP15 27 29 #define read_cpuid(reg) \ 28 30 ({ \ ··· 45 43 __val; \ 46 44 }) 47 45 #else 48 - extern unsigned int processor_id; 49 46 #define read_cpuid(reg) (processor_id) 50 47 #define read_cpuid_ext(reg) 0 51 48 #endif
+1
arch/arm/kernel/return_address.c
··· 9 9 * the Free Software Foundation. 10 10 */ 11 11 #include <linux/module.h> 12 + #include <linux/ftrace.h> 12 13 13 14 #if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) 14 15 #include <linux/sched.h>
+1 -1
arch/arm/kernel/traps.c
··· 256 256 return ret; 257 257 } 258 258 259 - DEFINE_SPINLOCK(die_lock); 259 + static DEFINE_SPINLOCK(die_lock); 260 260 261 261 /* 262 262 * This function is protected against re-entrancy.
+1 -1
arch/arm/vfp/vfpmodule.c
··· 153 153 * Raise a SIGFPE for the current process. 154 154 * sicode describes the signal being raised. 155 155 */ 156 - void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs) 156 + static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs) 157 157 { 158 158 siginfo_t info; 159 159