From: Peter Zijlstra Date: Fri, 20 Sep 2013 11:08:50 +0000 (+0200) Subject: perf/x86/intel: Fix build warning in intel_pmu_drain_pebs_nhm() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~41^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92519bbc8af612975410def52bd462ca9af85cdb;p=pandora-kernel.git 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 Link: http://lkml.kernel.org/n/tip-jbpauwxJqtf24luewcsdFith@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed