]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: milbeaut: fix build with !CONFIG_HOTPLUG_CPU
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Mar 2019 21:19:16 +0000 (22:19 +0100)
committerOlof Johansson <olof@lixom.net>
Sun, 7 Apr 2019 22:29:55 +0000 (15:29 -0700)
commitec71d3662d3e19b042382a01f63000212e7da44a
treee4594942d1790c252bc1a2878c4490e72d4a2930
parent9ca124b1bb77b2687a879c52aa1ef519d82c2270
ARM: milbeaut: fix build with !CONFIG_HOTPLUG_CPU

When HOTPLUG_CPU is disabled, some fields in the smp operations
are not available or needed:

arch/arm/mach-milbeaut/platsmp.c:90:3: error: field designator 'cpu_die' does not refer to any field in type
      'struct smp_operations'
        .cpu_die                = m10v_cpu_die,
         ^
arch/arm/mach-milbeaut/platsmp.c:91:3: error: field designator 'cpu_kill' does not refer to any field in type
      'struct smp_operations'
        .cpu_kill               = m10v_cpu_kill,
         ^

Hide them in an #ifdef like the other platforms do.

Fixes: 1ce390f3a67e ("ARM: milbeaut: Add basic support for Milbeaut m10v SoC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-milbeaut/platsmp.c