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)
commit6a73022ee3fdf7e60f2ba0a3a835dd421c05b5b5
tree9225fdcc92d675efb0182ca2c4c5296a1fe0e8ca
parentcf5b6a94787315c13fdf6736931071eac7f434c6
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