Commit 45822614 authored by YueHaibing's avatar YueHaibing Committed by Eric Biggers
Browse files

FROMGIT: arm64: Fix -Wunused-function warning when !CONFIG_HOTPLUG_CPU



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.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200918123318.23764-1-yuehaibing@huawei.com

Bug: 140053385
(cherry picked from commit 9d9edb96
 https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git

 irq/ipi-as-irq)
Change-Id: I55651169b5641d7eda174a0c2ebffda07da4c8f4
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 85cc65f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment