Skip to contentSkip to conversation

perf: arm_cspmu: Fix build failure on x86_64

PATCH Applied Besar Wicaksono 3 participants 3 messages Nov 16, 2022 – Nov 18, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: arm_cspmu: Fix build failure on x86_64

Building on x86_64 allmodconfig failed:
| drivers/perf/arm_cspmu/arm_cspmu.c:1114:29: error: implicit
| declaration of function 'get_acpi_id_for_cpu'

get_acpi_id_for_cpu is a helper function from ARM64. Fix by adding ARM64 dependency.

---
 drivers/perf/arm_cspmu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/arm_cspmu/Kconfig +1 -1
index 058223bef661..0b316fe69a45 100644
@@ -4,7 +4,7 @@
 
 config ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU
 	tristate "ARM Coresight Architecture PMU"
-	depends on ACPI
+	depends on ARM64 && ACPI
 	depends on ACPI_APMT || COMPILE_TEST
 	help
 	  Provides support for performance monitoring unit (PMU) devices

base-commit: 9500fc6e9e6077616c0dea0f7eb33138be94ed0c

Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Besar Wicaksono

Building on x86_64 allmodconfig failed:
| drivers/perf/arm_cspmu/arm_cspmu.c:1114:29: error: implicit
| declaration of function 'get_acpi_id_for_cpu'

get_acpi_id_for_cpu is a helper function from ARM64. Fix by adding ARM64 dependency.

nit: Not sure if we have a stable commit id to mark "fixes". May be that is not needed until it hits upstream.

Quoted 19 lines
---
  drivers/perf/arm_cspmu/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/arm_cspmu/Kconfig +1 -1
index 058223bef661..0b316fe69a45 100644
@@ -4,7 +4,7 @@
 
  config ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU
  	tristate "ARM Coresight Architecture PMU"
-	depends on ACPI
+	depends on ARM64 && ACPI
  	depends on ACPI_APMT || COMPILE_TEST
  	help
  	  Provides support for performance monitoring unit (PMU) devices

base-commit: 9500fc6e9e6077616c0dea0f7eb33138be94ed0c

maintainer Applied
#2 lore raw
In reply to Besar Wicaksono
Quoted 8 lines · Besar Wicaksono

Building on x86_64 allmodconfig failed:
| drivers/perf/arm_cspmu/arm_cspmu.c:1114:29: error: implicit
| declaration of function 'get_acpi_id_for_cpu'

get_acpi_id_for_cpu is a helper function from ARM64. Fix by adding ARM64 dependency.

[...]

Applied to will (for-next/perf), thanks!

[1/1] perf: arm_cspmu: Fix build failure on x86_64

      https://git.kernel.org/will/c/e72dbf9085b5

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev