diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-07 09:02:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-07 09:02:08 +0100 |
commit | 53ae341926b1238af3170f2f306f52a22430776c (patch) | |
tree | 6880ddd6b7e0e6bb317f05c1c2700c8f7ed0a445 /arch/sparc/kernel/setup_32.c | |
parent | sparc: Always set AUDIT_ARCH, not just on sparc64. (diff) | |
download | linux-53ae341926b1238af3170f2f306f52a22430776c.tar.xz linux-53ae341926b1238af3170f2f306f52a22430776c.zip |
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 @@ #include <asm/cpudata.h> #include <asm/setup.h> +#include "kernel.h" + struct screen_info screen_info = { 0, 0, /* orig-x, orig-y */ 0, /* unused */ @@ -308,9 +310,6 @@ void __init setup_arch(char **cmdline_p) smp_setup_cpu_possible_map(); } -extern char *sparc_cpu_type; -extern char *sparc_fpu_type; - static int ncpus_probed; static int show_cpuinfo(struct seq_file *m, void *__unused) |