]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson64: Fix build error 'secondary_kexec_args' undeclared under !SMP
authorYouling Tang <tangyouling@loongson.cn>
Thu, 6 May 2021 02:02:50 +0000 (10:02 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 May 2021 20:21:21 +0000 (22:21 +0200)
commit0f495de9e55d66c30ead02700304534148a7ad5c
tree9225fdcc92d675efb0182ca2c4c5296a1fe0e8ca
parent07e10828105bed8e3ceb37efe1c3e50e5dc5e556
MIPS: Loongson64: Fix build error 'secondary_kexec_args' undeclared under !SMP

On the Loongson64 platform, if CONFIG_SMP is not set, the following build
error will occur:
arch/mips/loongson64/reset.c:133:2: error:'secondary_kexec_args' undeclared

Because the definition and declaration of secondary_kexec_args are in the
CONFIG_SMP, the secondary_kexec_args variable should be used in CONFIG_SMP.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson64/reset.c