perf/x86/intel: Fix the building warning for i386 arch
Subsystems (2)
PATCH 1/1 perf/x86/intel: Fix the building warning for i386 arch
The warnings below are seen for building i386 arch image.
arch/x86/events/intel/ds.c: In function 'intel_pmu_drain_arch_pebs':arch/x86/events/intel/ds.c:2983:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
2983 | top = (void *)((u64)cpuc->pebs_vaddr +
| ^arch/x86/events/intel/ds.c:2983:15: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
2983 | top = (void *)((u64)cpuc->pebs_vaddr +
| ^
cc1: all warnings being treated as errors
change "u64" to "unsigned long" to fix the building error.
--- arch/x86/events/intel/ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/events/intel/ds.c +1 -1
@@ -2979,7 +2979,7 @@ static void intel_pmu_drain_arch_pebs(struct pt_regs *iregs, } base = cpuc->pebs_vaddr; - top = (void *)((u64 )cpuc->pebs_vaddr + + top = (void *)((unsigned long )cpuc->pebs_vaddr + (index.wr <<ARCH_PEBS_INDEX_WR_SHIFT )); index.wr =0 ;
base-commit: 2093d8cf80fa5552d1025a78a8f3a10bf3b6466e
prerequisite-patch-id: a15bcd62a8dcd219d17489eef88b66ea5488a2a0
Signature · 1 line
2.34.1