* [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU
@ 2015-05-19 20:33 Arnd Bergmann
2015-05-19 20:36 ` Nicolas Pitre
2015-05-20 9:57 ` Wei Xu
0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-05-19 20:33 UTC (permalink / raw)
To: linux-arm-kernel
The hip04 smp implementation provides the hotplug operations (cpu_die
and cpu_kill) unconditionally at the moment, which leads to a build
error when HOTPLUG_CPU is disabled:
mach-hisi/platmcpm.c:242:13: note: (near initialization for 'hip04_smp_ops')
mach-hisi/platmcpm.c:242:2: error: unknown field 'cpu_die' specified in initializer
mach-hisi/platmcpm.c:243:2: error: unknown field 'cpu_kill' specified in initializer
This uses an #ifdef to remove the code from the build when that
option is not set.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 905cdf9dda5d ("ARM: hisi/hip04: remove the MCPM overhead")
---
The patch causing this is currently part of rmk's devel-stable branch.
diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c
index 880cbfa9c343..b5f8f5ffda79 100644
--- a/arch/arm/mach-hisi/platmcpm.c
+++ b/arch/arm/mach-hisi/platmcpm.c
@@ -152,6 +152,7 @@ out:
return 0;
}
+#ifdef CONFIG_HOTPLUG_CPU
static void hip04_cpu_die(unsigned int l_cpu)
{
unsigned int mpidr, cpu, cluster;
@@ -236,11 +237,14 @@ err:
spin_unlock_irq(&boot_lock);
return 0;
}
+#endif
static struct smp_operations __initdata hip04_smp_ops = {
.smp_boot_secondary = hip04_boot_secondary,
+#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = hip04_cpu_die,
.cpu_kill = hip04_cpu_kill,
+#endif
};
static bool __init hip04_cpu_table_init(void)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU
2015-05-19 20:33 [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU Arnd Bergmann
@ 2015-05-19 20:36 ` Nicolas Pitre
2015-05-20 9:57 ` Wei Xu
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pitre @ 2015-05-19 20:36 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, 19 May 2015, Arnd Bergmann wrote:
> The hip04 smp implementation provides the hotplug operations (cpu_die
> and cpu_kill) unconditionally at the moment, which leads to a build
> error when HOTPLUG_CPU is disabled:
>
> mach-hisi/platmcpm.c:242:13: note: (near initialization for 'hip04_smp_ops')
> mach-hisi/platmcpm.c:242:2: error: unknown field 'cpu_die' specified in initializer
> mach-hisi/platmcpm.c:243:2: error: unknown field 'cpu_kill' specified in initializer
>
> This uses an #ifdef to remove the code from the build when that
> option is not set.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 905cdf9dda5d ("ARM: hisi/hip04: remove the MCPM overhead")
Acked-by: Nicolas Pitre <nico@linaro.org>
> ---
> The patch causing this is currently part of rmk's devel-stable branch.
>
> diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c
> index 880cbfa9c343..b5f8f5ffda79 100644
> --- a/arch/arm/mach-hisi/platmcpm.c
> +++ b/arch/arm/mach-hisi/platmcpm.c
> @@ -152,6 +152,7 @@ out:
> return 0;
> }
>
> +#ifdef CONFIG_HOTPLUG_CPU
> static void hip04_cpu_die(unsigned int l_cpu)
> {
> unsigned int mpidr, cpu, cluster;
> @@ -236,11 +237,14 @@ err:
> spin_unlock_irq(&boot_lock);
> return 0;
> }
> +#endif
>
> static struct smp_operations __initdata hip04_smp_ops = {
> .smp_boot_secondary = hip04_boot_secondary,
> +#ifdef CONFIG_HOTPLUG_CPU
> .cpu_die = hip04_cpu_die,
> .cpu_kill = hip04_cpu_kill,
> +#endif
> };
>
> static bool __init hip04_cpu_table_init(void)
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU
2015-05-19 20:33 [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU Arnd Bergmann
2015-05-19 20:36 ` Nicolas Pitre
@ 2015-05-20 9:57 ` Wei Xu
1 sibling, 0 replies; 3+ messages in thread
From: Wei Xu @ 2015-05-20 9:57 UTC (permalink / raw)
To: linux-arm-kernel
On 5/19/2015 9:33 PM, Arnd Bergmann wrote:
> The hip04 smp implementation provides the hotplug operations (cpu_die
> and cpu_kill) unconditionally at the moment, which leads to a build
> error when HOTPLUG_CPU is disabled:
>
> mach-hisi/platmcpm.c:242:13: note: (near initialization for 'hip04_smp_ops')
> mach-hisi/platmcpm.c:242:2: error: unknown field 'cpu_die' specified in initializer
> mach-hisi/platmcpm.c:243:2: error: unknown field 'cpu_kill' specified in initializer
>
> This uses an #ifdef to remove the code from the build when that
> option is not set.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 905cdf9dda5d ("ARM: hisi/hip04: remove the MCPM overhead")
Hi Arnd,
Thanks!
Best Regards,
Wei
> ---
> The patch causing this is currently part of rmk's devel-stable branch.
>
> diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c
> index 880cbfa9c343..b5f8f5ffda79 100644
> --- a/arch/arm/mach-hisi/platmcpm.c
> +++ b/arch/arm/mach-hisi/platmcpm.c
> @@ -152,6 +152,7 @@ out:
> return 0;
> }
>
> +#ifdef CONFIG_HOTPLUG_CPU
> static void hip04_cpu_die(unsigned int l_cpu)
> {
> unsigned int mpidr, cpu, cluster;
> @@ -236,11 +237,14 @@ err:
> spin_unlock_irq(&boot_lock);
> return 0;
> }
> +#endif
>
> static struct smp_operations __initdata hip04_smp_ops = {
> .smp_boot_secondary = hip04_boot_secondary,
> +#ifdef CONFIG_HOTPLUG_CPU
> .cpu_die = hip04_cpu_die,
> .cpu_kill = hip04_cpu_kill,
> +#endif
> };
>
> static bool __init hip04_cpu_table_init(void)
>
>
> .
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-20 9:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 20:33 [PATCH] ARM: hisi: fix hip04 build without HOTPLUG_CPU Arnd Bergmann
2015-05-19 20:36 ` Nicolas Pitre
2015-05-20 9:57 ` Wei Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.