tree: https://github.com/ammarfaizi2/linux-block tglx/devel/printk head: f6339cd6dc7f812f822e86bd78d1edbf2bfc730b commit: f6339cd6dc7f812f822e86bd78d1edbf2bfc730b [29/29] printk: Add atomic write enforcement to warn/panic... config: s390-randconfig-r044-20220911 compiler: s390-linux-gcc (GCC) 12.1.0 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 # https://github.com/ammarfaizi2/linux-block/commit/f6339cd6dc7f812f822e86bd78d1edbf2bfc730b git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block tglx/devel/printk git checkout f6339cd6dc7f812f822e86bd78d1edbf2bfc730b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 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 >>): s390-linux-ld: kernel/panic.o: in function `__warn': >> kernel/panic.c:613: undefined reference to `cons_atomic_enter' >> s390-linux-ld: kernel/panic.c:647: undefined reference to `cons_atomic_exit' s390-linux-ld: kernel/panic.o: in function `panic': kernel/panic.c:263: undefined reference to `cons_atomic_enter' s390-linux-ld: drivers/dma/idma64.o: in function `idma64_platform_probe': drivers/dma/idma64.c:644: undefined reference to `devm_ioremap_resource' s390-linux-ld: drivers/dma/qcom/hidma.o: in function `hidma_probe': drivers/dma/qcom/hidma.c:770: undefined reference to `devm_ioremap_resource' s390-linux-ld: drivers/dma/qcom/hidma.c:777: undefined reference to `devm_ioremap_resource' vim +613 kernel/panic.c 607 608 void __warn(const char *file, int line, void *caller, unsigned taint, 609 struct pt_regs *regs, struct warn_args *args) 610 { 611 enum cons_prio prev_prio; 612 > 613 prev_prio = cons_atomic_enter(CONS_PRIO_EMERGENCY); 614 615 disable_trace_on_warning(); 616 617 if (file) 618 pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS\n", 619 raw_smp_processor_id(), current->pid, file, line, 620 caller); 621 else 622 pr_warn("WARNING: CPU: %d PID: %d at %pS\n", 623 raw_smp_processor_id(), current->pid, caller); 624 625 if (args) 626 vprintk(args->fmt, args->args); 627 628 print_modules(); 629 630 if (regs) 631 show_regs(regs); 632 633 if (panic_on_warn) 634 panic("panic_on_warn set ...\n"); 635 636 if (!regs) 637 dump_stack(); 638 639 print_irqtrace_events(current); 640 641 print_oops_end_marker(); 642 trace_error_report_end(ERROR_DETECTOR_WARN, (unsigned long)caller); 643 644 /* Just a warning, don't kill lockdep. */ 645 add_taint(taint, LOCKDEP_STILL_OK); 646 > 647 cons_atomic_exit(CONS_PRIO_EMERGENCY, prev_prio); 648 } 649 -- 0-DAY CI Kernel Test Service https://01.org/lkp