]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: r8a7779: hide unused r8a7779_platform_cpu_kill
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Jul 2018 15:15:19 +0000 (17:15 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 20 Jul 2018 11:44:09 +0000 (13:44 +0200)
commitbf1533e857a76e6c0da9e211b52ae28d5fd103c5
tree4f66317eb1b8e732b4de986bcafdcfc79e0bf217
parentfab972904b40131100ec50aceb2c6c5e07f2b8ba
ARM: shmobile: r8a7779: hide unused r8a7779_platform_cpu_kill

After the cleanup in r8a7779_smp_prepare_cpus(), the only remaining caller of
r8a7779_platform_cpu_kill() is in an ifdef, which leads to a build warning
without CONFIG_HOTPLUG_CPU:

arch/arm/mach-shmobile/smp-r8a7779.c:26:12: error: 'r8a7779_platform_cpu_kill' defined but not used [-Werror=unused-function]

This moves the function inside of that #ifdef to avoid the warning.

Fixes: 50e999413043 ("ARM: shmobile: r8a7779: Stop powering down secondary CPUs during early boot")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/smp-r8a7779.c