diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-23 09:08:42 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 11:44:54 -0500 |
commit | 5d37e80b8053795f1f7553f93af0112062f05267 (patch) | |
tree | 3d8d63b3efe2929d663487f9f17bb9afdd305adb | |
parent | 302cff1a16b0759708e131a2540c6342e9095803 (diff) |
ARM: socfpga: hide unused functions
The cpu_die and cpu_kill callbacks are only used when CONFIG_HOTPLUG_CPU
is enabled, otherwise we get a warning about them:
arch/arm/mach-socfpga/platsmp.c:102:13: error: 'socfpga_cpu_die' defined but not used [-Werror=unused-function]
arch/arm/mach-socfpga/platsmp.c:115:12: error: 'socfpga_cpu_kill' defined but not used [-Werror=unused-function]
This adds the appropriate #ifdef.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
-rw-r--r-- | arch/arm/mach-socfpga/platsmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index cbb0a54df80a..07945748b571 100644 --- a/arch/arm/mach-socfpga/platsmp.c +++ b/arch/arm/mach-socfpga/platsmp.c | |||
@@ -94,6 +94,7 @@ static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus) | |||
94 | scu_enable(socfpga_scu_base_addr); | 94 | scu_enable(socfpga_scu_base_addr); |
95 | } | 95 | } |
96 | 96 | ||
97 | #ifdef CONFIG_HOTPLUG_CPU | ||
97 | /* | 98 | /* |
98 | * platform-specific code to shutdown a CPU | 99 | * platform-specific code to shutdown a CPU |
99 | * | 100 | * |
@@ -116,6 +117,7 @@ static int socfpga_cpu_kill(unsigned int cpu) | |||
116 | { | 117 | { |
117 | return 1; | 118 | return 1; |
118 | } | 119 | } |
120 | #endif | ||
119 | 121 | ||
120 | static const struct smp_operations socfpga_smp_ops __initconst = { | 122 | static const struct smp_operations socfpga_smp_ops __initconst = { |
121 | .smp_prepare_cpus = socfpga_smp_prepare_cpus, | 123 | .smp_prepare_cpus = socfpga_smp_prepare_cpus, |