From: Mark Rutland Date: Wed, 10 Aug 2011 09:20:17 +0000 (+0100) Subject: ARM: perf: fix prototype of release_pmu X-Git-Tag: v6.6-pxa1908~29530^2~13^2~4 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=49bef8331afefa4dd75f7124c50bde47168f5492;p=linux.git 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 Signed-off-by: Will Deacon --- diff --git a/arch/arm/include/asm/pmu.h b/arch/arm/include/asm/pmu.h index 67c70a31a1be..8ae32ba092c2 100644 --- a/arch/arm/include/asm/pmu.h +++ b/arch/arm/include/asm/pmu.h @@ -75,7 +75,7 @@ reserve_pmu(enum arm_pmu_type device) } static inline int -release_pmu(struct platform_device *pdev) +release_pmu(enum arm_pmu_type device) { return -ENODEV; }