|
@@ -31,13 +31,13 @@ extern const struct cpu_operations cpu_psci_ops;
|
|
|
|
|
|
const struct cpu_operations *cpu_ops[NR_CPUS] __ro_after_init;
|
|
|
|
|
|
-static const struct cpu_operations *dt_supported_cpu_ops[] __initconst = {
|
|
|
+static const struct cpu_operations *const dt_supported_cpu_ops[] __initconst = {
|
|
|
&smp_spin_table_ops,
|
|
|
&cpu_psci_ops,
|
|
|
NULL,
|
|
|
};
|
|
|
|
|
|
-static const struct cpu_operations *acpi_supported_cpu_ops[] __initconst = {
|
|
|
+static const struct cpu_operations *const acpi_supported_cpu_ops[] __initconst = {
|
|
|
#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL
|
|
|
&acpi_parking_protocol_ops,
|
|
|
#endif
|
|
@@ -47,7 +47,7 @@ static const struct cpu_operations *acpi_supported_cpu_ops[] __initconst = {
|
|
|
|
|
|
static const struct cpu_operations * __init cpu_get_ops(const char *name)
|
|
|
{
|
|
|
- const struct cpu_operations **ops;
|
|
|
+ const struct cpu_operations *const *ops;
|
|
|
|
|
|
ops = acpi_disabled ? dt_supported_cpu_ops : acpi_supported_cpu_ops;
|
|
|
|