tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/5.15 head: e20b35ec990f7ec925ec64b5edbbb409fb361c7a commit: bccfd3f6031cdd59b92c4aa0384c9d46262293f9 [99/113] riscv: kexec: Fixup crash_smp_send_stop without multi cores config: riscv-randconfig-r042-20221204 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv-linux-gnu # https://github.com/ammarfaizi2/linux-block/commit/bccfd3f6031cdd59b92c4aa0384c9d46262293f9 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.15 git checkout bccfd3f6031cdd59b92c4aa0384c9d46262293f9 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/riscv/kernel/smp.c:195:23: error: use of undeclared identifier 'cpu' ipi_cpu_crash_stop(cpu, get_irq_regs()); ^ >> arch/riscv/kernel/smp.c:217:15: error: use of undeclared identifier 'old_regs' set_irq_regs(old_regs); ^ 2 errors generated. vim +/cpu +195 arch/riscv/kernel/smp.c 159 160 void handle_IPI(struct pt_regs *regs) 161 { 162 unsigned long *pending_ipis = &ipi_data[smp_processor_id()].bits; 163 unsigned long *stats = ipi_data[smp_processor_id()].stats; 164 165 irq_enter(); 166 167 riscv_clear_ipi(); 168 169 while (true) { 170 unsigned long ops; 171 172 /* Order bit clearing and data access. */ 173 mb(); 174 175 ops = xchg(pending_ipis, 0); 176 if (ops == 0) 177 goto done; 178 179 if (ops & (1 << IPI_RESCHEDULE)) { 180 stats[IPI_RESCHEDULE]++; 181 scheduler_ipi(); 182 } 183 184 if (ops & (1 << IPI_CALL_FUNC)) { 185 stats[IPI_CALL_FUNC]++; 186 generic_smp_call_function_interrupt(); 187 } 188 189 if (ops & (1 << IPI_CPU_STOP)) { 190 stats[IPI_CPU_STOP]++; 191 ipi_stop(); 192 } 193 194 if (ops & (1 << IPI_CPU_CRASH_STOP)) { > 195 ipi_cpu_crash_stop(cpu, get_irq_regs()); 196 } 197 198 if (ops & (1 << IPI_IRQ_WORK)) { 199 stats[IPI_IRQ_WORK]++; 200 irq_work_run(); 201 } 202 203 #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST 204 if (ops & (1 << IPI_TIMER)) { 205 stats[IPI_TIMER]++; 206 tick_receive_broadcast(); 207 } 208 #endif 209 BUG_ON((ops >> IPI_MAX) != 0); 210 211 /* Order data access and bit testing. */ 212 mb(); 213 } 214 215 done: 216 irq_exit(); > 217 set_irq_regs(old_regs); 218 } 219 -- 0-DAY CI Kernel Test Service https://01.org/lkp