mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
7e7e93a228
commit
53ae341926
6 changed files with 16 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue