diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-16 17:26:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-18 22:01:34 -0400 |
commit | 59dec13b2736117c35e2432fc6e241263f7b4a9b (patch) | |
tree | 15cec365a2c6c6268151777bdebad48d0c56abda /arch/sparc | |
parent | 756382cb5743b8f5c8383672928f0bd955d82a7a (diff) |
sparc64: fix sparse warnings in init_64.c
Fix following warnings:
init_64.c:191:10: warning: symbol 'dcpage_flushes' was not declared. Should it be static?
init_64.c:193:10: warning: symbol 'dcpage_flushes_xcall' was not declared. Should it be static?
Add extern declaration to asm/setup.h and drop local declaration in smp_64.h
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/setup.h | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/smp_64.c | 6 | ||||
-rw-r--r-- | arch/sparc/mm/init_64.c | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/setup.h b/arch/sparc/include/asm/setup.h index 0c4f69528d0d..f5fffd84d0dd 100644 --- a/arch/sparc/include/asm/setup.h +++ b/arch/sparc/include/asm/setup.h | |||
@@ -52,6 +52,10 @@ unsigned long safe_compute_effective_address(struct pt_regs *, unsigned int); | |||
52 | int handle_ldf_stq(u32 insn, struct pt_regs *regs); | 52 | int handle_ldf_stq(u32 insn, struct pt_regs *regs); |
53 | void handle_ld_nf(u32 insn, struct pt_regs *regs); | 53 | void handle_ld_nf(u32 insn, struct pt_regs *regs); |
54 | 54 | ||
55 | /* init_64.c */ | ||
56 | extern atomic_t dcpage_flushes; | ||
57 | extern atomic_t dcpage_flushes_xcall; | ||
58 | |||
55 | extern int sysctl_tsb_ratio; | 59 | extern int sysctl_tsb_ratio; |
56 | #endif | 60 | #endif |
57 | 61 | ||
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index afc71bf719b1..61605b38019c 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/hvtramp.h> | 36 | #include <asm/hvtramp.h> |
37 | #include <asm/io.h> | 37 | #include <asm/io.h> |
38 | #include <asm/timer.h> | 38 | #include <asm/timer.h> |
39 | #include <asm/setup.h> | ||
39 | 40 | ||
40 | #include <asm/irq.h> | 41 | #include <asm/irq.h> |
41 | #include <asm/irq_regs.h> | 42 | #include <asm/irq_regs.h> |
@@ -861,11 +862,6 @@ extern unsigned long xcall_flush_dcache_page_cheetah; | |||
861 | #endif | 862 | #endif |
862 | extern unsigned long xcall_flush_dcache_page_spitfire; | 863 | extern unsigned long xcall_flush_dcache_page_spitfire; |
863 | 864 | ||
864 | #ifdef CONFIG_DEBUG_DCFLUSH | ||
865 | extern atomic_t dcpage_flushes; | ||
866 | extern atomic_t dcpage_flushes_xcall; | ||
867 | #endif | ||
868 | |||
869 | static inline void __local_flush_dcache_page(struct page *page) | 865 | static inline void __local_flush_dcache_page(struct page *page) |
870 | { | 866 | { |
871 | #ifdef DCACHE_ALIASING_POSSIBLE | 867 | #ifdef DCACHE_ALIASING_POSSIBLE |
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index eafbc65c9c47..0ebe2fde6671 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <asm/prom.h> | 47 | #include <asm/prom.h> |
48 | #include <asm/mdesc.h> | 48 | #include <asm/mdesc.h> |
49 | #include <asm/cpudata.h> | 49 | #include <asm/cpudata.h> |
50 | #include <asm/setup.h> | ||
50 | #include <asm/irq.h> | 51 | #include <asm/irq.h> |
51 | 52 | ||
52 | #include "init_64.h" | 53 | #include "init_64.h" |