[PATCH -next] arm64: Fix -Wunused-function warning

Marc Zyngier maz at kernel.org
Fri Sep 18 12:01:29 EDT 2020


On Fri, 18 Sep 2020 20:33:18 +0800, YueHaibing wrote:
> If CONFIG_HOTPLUG_CPU is n, gcc warns:
> 
> arch/arm64/kernel/smp.c:967:13: warning: ‘ipi_teardown’ defined but not used [-Wunused-function]
>  static void ipi_teardown(int cpu)
>              ^~~~~~~~~~~~
> 
> Use #ifdef guard this.

Applied to irq/irqchip-next, thanks!

[1/1] arm64: Fix -Wunused-function warning when !CONFIG_HOTPLUG_CPU
      commit: 9d9edb962e910552c9c008800ec907293a47852e

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list