tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8ca5297e7e38f2dc8c753d33a5092e7be181fff0 commit: 6ce48897ce476bed86fde28752c27596e8753277 MIPS: Loongson64: Add kexec/kdump support date: 2 weeks ago config: mips-randconfig-s032-20210430 (attached as .config) compiler: mips64el-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ce48897ce476bed86fde28752c27596e8753277 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 6ce48897ce476bed86fde28752c27596e8753277 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/mips/loongson64/reset.c: In function 'loongson_kexec_shutdown': >> arch/mips/loongson64/reset.c:133:2: error: 'secondary_kexec_args' undeclared (first use in this function) 133 | secondary_kexec_args[0] = TO_UNCAC(0x3ff01000); | ^~~~~~~~~~~~~~~~~~~~ arch/mips/loongson64/reset.c:133:2: note: each undeclared identifier is reported only once for each function it appears in arch/mips/loongson64/reset.c: In function 'loongson_crash_shutdown': arch/mips/loongson64/reset.c:144:2: error: 'secondary_kexec_args' undeclared (first use in this function) 144 | secondary_kexec_args[0] = TO_UNCAC(0x3ff01000); | ^~~~~~~~~~~~~~~~~~~~ vim +/secondary_kexec_args +133 arch/mips/loongson64/reset.c 119 120 static void loongson_kexec_shutdown(void) 121 { 122 #ifdef CONFIG_SMP 123 int cpu; 124 125 /* All CPUs go to reboot_code_buffer */ 126 for_each_possible_cpu(cpu) 127 if (!cpu_online(cpu)) 128 cpu_device_up(get_cpu_device(cpu)); 129 #endif 130 kexec_args[0] = kexec_argc; 131 kexec_args[1] = fw_arg1; 132 kexec_args[2] = fw_arg2; > 133 secondary_kexec_args[0] = TO_UNCAC(0x3ff01000); 134 memcpy((void *)fw_arg1, kexec_argv, KEXEC_ARGV_SIZE); 135 memcpy((void *)fw_arg2, kexec_envp, KEXEC_ENVP_SIZE); 136 } 137 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org