Skip to content

Commit 7fec52b

Browse files
Gavin Shanctmarinas
authored andcommitted
arm64: Declare ACPI parking protocol CPU operation if needed
It's obvious we needn't declare the corresponding CPU operation when CONFIG_ARM64_ACPI_PARKING_PROTOCOL is disabled, even it doesn't cause any compiling warnings. Signed-off-by: Gavin Shan <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent f8788d8 commit 7fec52b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/kernel/cpu_ops.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
#include <asm/smp_plat.h>
1616

1717
extern const struct cpu_operations smp_spin_table_ops;
18+
#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL
1819
extern const struct cpu_operations acpi_parking_protocol_ops;
20+
#endif
1921
extern const struct cpu_operations cpu_psci_ops;
2022

2123
const struct cpu_operations *cpu_ops[NR_CPUS] __ro_after_init;

0 commit comments

Comments
 (0)