diff options
author | Jaswinder Singh <jaswinder@infradead.org> | 2008-12-19 12:07:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-19 17:15:10 -0500 |
commit | 94c46572a6d9bb497eda0a14099d9f1360d57d5d (patch) | |
tree | 1f7623292004e0c3c0e51cb34948993c8d76eaa4 /arch | |
parent | a86ed50859d65a08beec9474df97b88438a996df (diff) |
x86: perf_counter.c intel_perfmon_event_map and max_intel_perfmon_events should be static
Impact: cleanup, avoid sparse warnings, reduce kernel size a bit
Fixes these sparse warnings:
arch/x86/kernel/cpu/perf_counter.c:44:11: warning: symbol 'intel_perfmon_event_map' was not declared. Should it be static?
arch/x86/kernel/cpu/perf_counter.c:54:11: warning: symbol 'max_intel_perfmon_events' was not declared. Should it be static?
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/perf_counter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index 8a154bd7ba94..bdbdb56eaa34 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c | |||
@@ -41,7 +41,7 @@ struct cpu_hw_counters { | |||
41 | */ | 41 | */ |
42 | static DEFINE_PER_CPU(struct cpu_hw_counters, cpu_hw_counters); | 42 | static DEFINE_PER_CPU(struct cpu_hw_counters, cpu_hw_counters); |
43 | 43 | ||
44 | const int intel_perfmon_event_map[] = | 44 | static const int intel_perfmon_event_map[] = |
45 | { | 45 | { |
46 | [PERF_COUNT_CYCLES] = 0x003c, | 46 | [PERF_COUNT_CYCLES] = 0x003c, |
47 | [PERF_COUNT_INSTRUCTIONS] = 0x00c0, | 47 | [PERF_COUNT_INSTRUCTIONS] = 0x00c0, |
@@ -51,7 +51,7 @@ const int intel_perfmon_event_map[] = | |||
51 | [PERF_COUNT_BRANCH_MISSES] = 0x00c5, | 51 | [PERF_COUNT_BRANCH_MISSES] = 0x00c5, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | const int max_intel_perfmon_events = ARRAY_SIZE(intel_perfmon_event_map); | 54 | static const int max_intel_perfmon_events = ARRAY_SIZE(intel_perfmon_event_map); |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * Propagate counter elapsed time into the generic counter. | 57 | * Propagate counter elapsed time into the generic counter. |