Browse Source

ARM: perf: fix prototype of release_pmu

Commit  f12482c9 ("ARM: 6974/1: pmu: refactor reservation") changed the
prototype of release_pmu, but missed the stub for when
CONFIG_CPU_HAS_PMU is not selected by the platform.

This patch changes the prototype of the stub, preventing possible build
failures when CONFIG_CPU_HAS_PMU is not selected.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Mark Rutland 14 năm trước cách đây
mục cha
commit
49bef8331a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/arm/include/asm/pmu.h

+ 1 - 1
arch/arm/include/asm/pmu.h

@@ -75,7 +75,7 @@ reserve_pmu(enum arm_pmu_type device)
 }
 }
 
 
 static inline int
 static inline int
-release_pmu(struct platform_device *pdev)
+release_pmu(enum arm_pmu_type device)
 {
 {
 	return -ENODEV;
 	return -ENODEV;
 }
 }