aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2013-09-20 07:08:50 -0400
committerIngo Molnar <mingo@kernel.org>2013-09-20 07:15:27 -0400
commit92519bbc8af612975410def52bd462ca9af85cdb (patch)
tree9ccc970e62843e9006169e64b509c6e7ac4c5a99
parenteb8417aa703eff5ff43d0275f19b0a8e591d818d (diff)
perf/x86/intel: Fix build warning in intel_pmu_drain_pebs_nhm()
Fengguang Wu reported this build warning: arch/x86/kernel/cpu/perf_event_intel_ds.c: In function 'intel_pmu_drain_pebs_nhm': arch/x86/kernel/cpu/perf_event_intel_ds.c:964:2: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' Because pointer arithmetics result type is bitness dependent there's no natural type to use here, cast it to long. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-jbpauwxJqtf24luewcsdFith@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel_ds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_ds.c b/arch/x86/kernel/cpu/perf_event_intel_ds.c
index 655d591b57a0..54ff6ce519c1 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_ds.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_ds.c
@@ -963,7 +963,7 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)
963 */ 963 */
964 WARN_ONCE(top - at > x86_pmu.max_pebs_events * x86_pmu.pebs_record_size, 964 WARN_ONCE(top - at > x86_pmu.max_pebs_events * x86_pmu.pebs_record_size,
965 "Unexpected number of pebs records %ld\n", 965 "Unexpected number of pebs records %ld\n",
966 (top - at) / x86_pmu.pebs_record_size); 966 (long)(top - at) / x86_pmu.pebs_record_size);
967 967
968 for (; at < top; at += x86_pmu.pebs_record_size) { 968 for (; at < top; at += x86_pmu.pebs_record_size) {
969 struct pebs_record_nhm *p = at; 969 struct pebs_record_nhm *p = at;