tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 0f5f12ac05f36f117e793656c3f560625e927f1b commit: f7a6fde1ce06ddb4bc39e09ec82508dea41f2700 [3905/4597] kexec_core: change dependency of object files config: mips-randconfig-r021-20230305 (https://download.01.org/0day-ci/archive/20231205/202312051416.YiRWCYmp-lkp@xxxxxxxxx/config) compiler: mips-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051416.YiRWCYmp-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202312051416.YiRWCYmp-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): arch/mips/kernel/machine_kexec.c: In function 'machine_kexec_prepare': arch/mips/kernel/machine_kexec.c:97:14: error: implicit declaration of function 'kexec_nonboot_cpu_func' [-Werror=implicit-function-declaration] 97 | if (!kexec_nonboot_cpu_func()) | ^~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'kexec_shutdown_secondary': arch/mips/kernel/machine_kexec.c:129:9: error: implicit declaration of function 'kexec_reboot' [-Werror=implicit-function-declaration] 129 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: At top level: arch/mips/kernel/machine_kexec.c:136:1: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes] 136 | machine_shutdown(void) | ^~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c:152:1: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes] 152 | machine_crash_shutdown(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'machine_crash_shutdown': arch/mips/kernel/machine_kexec.c:157:17: error: implicit declaration of function 'default_machine_crash_shutdown'; did you mean '_machine_crash_shutdown'? [-Werror=implicit-function-declaration] 157 | default_machine_crash_shutdown(regs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | _machine_crash_shutdown arch/mips/kernel/machine_kexec.c: At top level: >> arch/mips/kernel/machine_kexec.c:161:6: warning: no previous prototype for 'kexec_nonboot_cpu_jump' [-Wmissing-prototypes] 161 | void kexec_nonboot_cpu_jump(void) | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/mips/kernel/machine_kexec.c:170:6: warning: no previous prototype for 'kexec_reboot' [-Wmissing-prototypes] 170 | void kexec_reboot(void) | ^~~~~~~~~~~~ >> arch/mips/kernel/machine_kexec.c:170:6: warning: conflicting types for 'kexec_reboot'; have 'void(void)' arch/mips/kernel/machine_kexec.c:129:9: note: previous implicit declaration of 'kexec_reboot' with type 'void(void)' 129 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'kexec_reboot': arch/mips/kernel/machine_kexec.c:191:17: error: implicit declaration of function 'kexec_nonboot_cpu'; did you mean 'kexec_nonboot_cpu_jump'? [-Werror=implicit-function-declaration] 191 | kexec_nonboot_cpu(); | ^~~~~~~~~~~~~~~~~ | kexec_nonboot_cpu_jump arch/mips/kernel/machine_kexec.c: In function 'machine_kexec': arch/mips/kernel/machine_kexec.c:259:26: error: 'kexec_smp_wait' undeclared (first use in this function) 259 | (void *)(kexec_smp_wait - relocate_new_kernel); | ^~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c:259:26: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors -- arch/mips/kernel/crash.c: In function 'crash_shutdown_secondary': arch/mips/kernel/crash.c:47:30: error: 'kexec_ready_to_reboot' undeclared (first use in this function) 47 | while (!atomic_read(&kexec_ready_to_reboot)) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/crash.c:47:30: note: each undeclared identifier is reported only once for each function it appears in arch/mips/kernel/crash.c:50:9: error: implicit declaration of function 'kexec_reboot' [-Werror=implicit-function-declaration] 50 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/crash.c: In function 'crash_smp_send_stop': arch/mips/kernel/crash.c:86:13: error: '_crash_smp_send_stop' undeclared (first use in this function); did you mean 'crash_smp_send_stop'? 86 | if (_crash_smp_send_stop) | ^~~~~~~~~~~~~~~~~~~~ | crash_smp_send_stop arch/mips/kernel/crash.c:87:17: error: implicit declaration of function '_crash_smp_send_stop'; did you mean 'crash_smp_send_stop'? [-Werror=implicit-function-declaration] 87 | _crash_smp_send_stop(); | ^~~~~~~~~~~~~~~~~~~~ | crash_smp_send_stop arch/mips/kernel/crash.c: At top level: >> arch/mips/kernel/crash.c:96:6: warning: no previous prototype for 'default_machine_crash_shutdown' [-Wmissing-prototypes] 96 | void default_machine_crash_shutdown(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/kexec_nonboot_cpu_jump +161 arch/mips/kernel/machine_kexec.c 583bb86fbb9e85 Nicolas Schichan 2006-10-18 159 62cac480f33f8f Dengcheng Zhu 2018-09-11 160 #ifdef CONFIG_SMP 62cac480f33f8f Dengcheng Zhu 2018-09-11 @161 void kexec_nonboot_cpu_jump(void) 62cac480f33f8f Dengcheng Zhu 2018-09-11 162 { 62cac480f33f8f Dengcheng Zhu 2018-09-11 163 local_flush_icache_range((unsigned long)relocated_kexec_smp_wait, 62cac480f33f8f Dengcheng Zhu 2018-09-11 164 reboot_code_buffer + relocate_new_kernel_size); 62cac480f33f8f Dengcheng Zhu 2018-09-11 165 62cac480f33f8f Dengcheng Zhu 2018-09-11 166 relocated_kexec_smp_wait(NULL); 62cac480f33f8f Dengcheng Zhu 2018-09-11 167 } 62cac480f33f8f Dengcheng Zhu 2018-09-11 168 #endif 62cac480f33f8f Dengcheng Zhu 2018-09-11 169 62cac480f33f8f Dengcheng Zhu 2018-09-11 @170 void kexec_reboot(void) 62cac480f33f8f Dengcheng Zhu 2018-09-11 171 { 62cac480f33f8f Dengcheng Zhu 2018-09-11 172 void (*do_kexec)(void) __noreturn; 62cac480f33f8f Dengcheng Zhu 2018-09-11 173 82689ac663ac2f Dengcheng Zhu 2018-09-26 174 /* 82689ac663ac2f Dengcheng Zhu 2018-09-26 175 * We know we were online, and there will be no incoming IPIs at 82689ac663ac2f Dengcheng Zhu 2018-09-26 176 * this point. Mark online again before rebooting so that the crash 82689ac663ac2f Dengcheng Zhu 2018-09-26 177 * analysis tool will see us correctly. 82689ac663ac2f Dengcheng Zhu 2018-09-26 178 */ 82689ac663ac2f Dengcheng Zhu 2018-09-26 179 set_cpu_online(smp_processor_id(), true); 82689ac663ac2f Dengcheng Zhu 2018-09-26 180 82689ac663ac2f Dengcheng Zhu 2018-09-26 181 /* Ensure remote CPUs observe that we're online before rebooting. */ 82689ac663ac2f Dengcheng Zhu 2018-09-26 182 smp_mb__after_atomic(); 82689ac663ac2f Dengcheng Zhu 2018-09-26 183 :::::: The code at line 161 was first introduced by commit :::::: 62cac480f33f8f9413d609cb1601b0ee521a86b8 MIPS: kexec: Make a framework for both jumping and halting on nonboot CPUs :::::: TO: Dengcheng Zhu <dzhu@xxxxxxxxxxxx> :::::: CC: Paul Burton <paul.burton@xxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki