diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-07 03:02:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-07 03:02:08 -0500 |
commit | 53ae341926b1238af3170f2f306f52a22430776c (patch) | |
tree | 6880ddd6b7e0e6bb317f05c1c2700c8f7ed0a445 /arch/sparc/kernel/setup_32.c | |
parent | 7e7e93a22851f7bf0cbb7cd70878ebd811e4a044 (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.c | 5 |
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 | |||
49 | struct screen_info screen_info = { | 51 | struct 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 | ||
311 | extern char *sparc_cpu_type; | ||
312 | extern char *sparc_fpu_type; | ||
313 | |||
314 | static int ncpus_probed; | 313 | static int ncpus_probed; |
315 | 314 | ||
316 | static int show_cpuinfo(struct seq_file *m, void *__unused) | 315 | static int show_cpuinfo(struct seq_file *m, void *__unused) |