diff options
author | Michal Simek <monstr@monstr.eu> | 2011-02-07 05:33:47 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-03-09 02:09:57 -0500 |
commit | 29e3dbb10f0efff1297026679364dacc2c822145 (patch) | |
tree | 8b1e440f1f3fbe36ce792600ee4f5e6b9a2e7e14 /arch/microblaze/kernel | |
parent | fe34c478d14480c9e389f71e6bcf62827f86c089 (diff) |
microblaze: Fix sparse warning - timer.c
Variables and init_microblaze_timecounter should be static.
Warning log:
CHECK arch/microblaze/kernel/timer.c
arch/microblaze/kernel/timer.c:41:14: warning: symbol 'freq_div_hz' was not declared. Should it be static?
arch/microblaze/kernel/timer.c:42:14: warning: symbol 'timer_clock_freq' was not declared. Should it be static?
arch/microblaze/kernel/timer.c:205:12: warning: symbol 'init_microblaze_timecounter' was not declared. Should it be static?
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c index a5aa33db1df3..d8a214f11ac2 100644 --- a/arch/microblaze/kernel/timer.c +++ b/arch/microblaze/kernel/timer.c | |||
@@ -38,8 +38,8 @@ static unsigned int timer_baseaddr; | |||
38 | #define TIMER_BASE timer_baseaddr | 38 | #define TIMER_BASE timer_baseaddr |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | unsigned int freq_div_hz; | 41 | static unsigned int freq_div_hz; |
42 | unsigned int timer_clock_freq; | 42 | static unsigned int timer_clock_freq; |
43 | 43 | ||
44 | #define TCSR0 (0x00) | 44 | #define TCSR0 (0x00) |
45 | #define TLR0 (0x04) | 45 | #define TLR0 (0x04) |
@@ -202,7 +202,7 @@ static struct cyclecounter microblaze_cc = { | |||
202 | .shift = 8, | 202 | .shift = 8, |
203 | }; | 203 | }; |
204 | 204 | ||
205 | int __init init_microblaze_timecounter(void) | 205 | static int __init init_microblaze_timecounter(void) |
206 | { | 206 | { |
207 | microblaze_cc.mult = div_sc(timer_clock_freq, NSEC_PER_SEC, | 207 | microblaze_cc.mult = div_sc(timer_clock_freq, NSEC_PER_SEC, |
208 | microblaze_cc.shift); | 208 | microblaze_cc.shift); |