aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/setup_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-07 03:02:08 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-07 03:02:08 -0500
commit53ae341926b1238af3170f2f306f52a22430776c (patch)
tree6880ddd6b7e0e6bb317f05c1c2700c8f7ed0a445 /arch/sparc/kernel/setup_32.c
parent7e7e93a22851f7bf0cbb7cd70878ebd811e4a044 (diff)
sparc: fix sparse warnings in cpu_*.c
o declare variables from cpu_*.c o declare function from cpu_32.c To do this introduce a new header "kernel.h" which is local to kernel/ Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/setup_32.c')
-rw-r--r--arch/sparc/kernel/setup_32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c
index d21abbe26360..c96c65d1b58b 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -46,6 +46,8 @@
46#include <asm/cpudata.h> 46#include <asm/cpudata.h>
47#include <asm/setup.h> 47#include <asm/setup.h>
48 48
49#include "kernel.h"
50
49struct screen_info screen_info = { 51struct screen_info screen_info = {
50 0, 0, /* orig-x, orig-y */ 52 0, 0, /* orig-x, orig-y */
51 0, /* unused */ 53 0, /* unused */
@@ -308,9 +310,6 @@ void __init setup_arch(char **cmdline_p)
308 smp_setup_cpu_possible_map(); 310 smp_setup_cpu_possible_map();
309} 311}
310 312
311extern char *sparc_cpu_type;
312extern char *sparc_fpu_type;
313
314static int ncpus_probed; 313static int ncpus_probed;
315 314
316static int show_cpuinfo(struct seq_file *m, void *__unused) 315static int show_cpuinfo(struct seq_file *m, void *__unused)