tree: https://github.com/ammarfaizi2/linux-block palmer/linux/asmgeneric-command_line_size-v2 head: bd32e278ea9efad61f36541750f8e8cda7d07db8 commit: 8f6700eb40171cb67fb2c0d7695165f2764a05e3 [4/24] ia64: Remove COMMAND_LINE_SIZE from uapi config: ia64-allmodconfig compiler: ia64-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/8f6700eb40171cb67fb2c0d7695165f2764a05e3 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block palmer/linux/asmgeneric-command_line_size-v2 git checkout 8f6700eb40171cb67fb2c0d7695165f2764a05e3 # 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=ia64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the ammarfaizi2-block/palmer/linux/asmgeneric-command_line_size-v2 HEAD bd32e278ea9efad61f36541750f8e8cda7d07db8 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): In file included from include/linux/kexec.h:35, from arch/ia64/kernel/machine_kexec.c:12: arch/ia64/include/asm/kexec.h:27:24: warning: 'struct ia64_boot_param' declared inside parameter list will not be visible outside of this definition or declaration 27 | struct ia64_boot_param *, unsigned long); | ^~~~~~~~~~~~~~~ arch/ia64/kernel/machine_kexec.c:32:48: warning: 'struct ia64_boot_param' declared inside parameter list will not be visible outside of this definition or declaration 32 | struct ia64_boot_param *boot_param, | ^~~~~~~~~~~~~~~ arch/ia64/kernel/machine_kexec.c: In function 'ia64_machine_kexec': >> arch/ia64/kernel/machine_kexec.c:132:43: error: 'ia64_boot_param' undeclared (first use in this function) 132 | (*rnk)(image->head, image->start, ia64_boot_param, | ^~~~~~~~~~~~~~~ arch/ia64/kernel/machine_kexec.c:132:43: note: each undeclared identifier is reported only once for each function it appears in vim +/ia64_boot_param +132 arch/ia64/kernel/machine_kexec.c a79561134f38de Zou Nan hai 2006-12-07 77 a79561134f38de Zou Nan hai 2006-12-07 78 /* a79561134f38de Zou Nan hai 2006-12-07 79 * Do not allocate memory (or fail in any way) in machine_kexec(). a79561134f38de Zou Nan hai 2006-12-07 80 * We are past the point of no return, committed to rebooting now. a79561134f38de Zou Nan hai 2006-12-07 81 */ a79561134f38de Zou Nan hai 2006-12-07 82 static void ia64_machine_kexec(struct unw_frame_info *info, void *arg) a79561134f38de Zou Nan hai 2006-12-07 83 { a79561134f38de Zou Nan hai 2006-12-07 84 struct kimage *image = arg; a79561134f38de Zou Nan hai 2006-12-07 85 relocate_new_kernel_t rnk; a79561134f38de Zou Nan hai 2006-12-07 86 void *pal_addr = efi_get_pal_addr(); 36a45e74178362 Wei Yongjun 2012-09-10 87 unsigned long code_addr; a79561134f38de Zou Nan hai 2006-12-07 88 int ii; 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 89 u64 fp, gp; 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 90 ia64_fptr_t *init_handler = (ia64_fptr_t *)ia64_os_init_on_kdump; a79561134f38de Zou Nan hai 2006-12-07 91 c2c77fe8df3e03 Bernhard Walle 2007-01-28 92 BUG_ON(!image); 36a45e74178362 Wei Yongjun 2012-09-10 93 code_addr = (unsigned long)page_address(image->control_code_page); a79561134f38de Zou Nan hai 2006-12-07 94 if (image->type == KEXEC_TYPE_CRASH) { a79561134f38de Zou Nan hai 2006-12-07 95 crash_save_this_cpu(); a79561134f38de Zou Nan hai 2006-12-07 96 current->thread.ksp = (__u64)info->sw - 16; 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 97 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 98 /* Register noop init handler */ 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 99 fp = ia64_tpa(init_handler->fp); 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 100 gp = ia64_tpa(ia64_getreg(_IA64_REG_GP)); 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 101 ia64_sal_set_vectors(SAL_VECTOR_OS_INIT, fp, gp, 0, fp, gp, 0); 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 102 } else { 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 103 /* Unregister init handlers of current kernel */ 07a6a4ae827b54 Hidetoshi Seto 2009-08-06 104 ia64_sal_set_vectors(SAL_VECTOR_OS_INIT, 0, 0, 0, 0, 0, 0); a79561134f38de Zou Nan hai 2006-12-07 105 } a79561134f38de Zou Nan hai 2006-12-07 106 6cc3efcdf01cf8 Hidetoshi Seto 2009-08-06 107 /* Unregister mca handler - No more recovery on current kernel */ 6cc3efcdf01cf8 Hidetoshi Seto 2009-08-06 108 ia64_sal_set_vectors(SAL_VECTOR_OS_MCA, 0, 0, 0, 0, 0, 0); 6cc3efcdf01cf8 Hidetoshi Seto 2009-08-06 109 a79561134f38de Zou Nan hai 2006-12-07 110 /* Interrupts aren't acceptable while we reboot */ a79561134f38de Zou Nan hai 2006-12-07 111 local_irq_disable(); a79561134f38de Zou Nan hai 2006-12-07 112 a79561134f38de Zou Nan hai 2006-12-07 113 /* Mask CMC and Performance Monitor interrupts */ a79561134f38de Zou Nan hai 2006-12-07 114 ia64_setreg(_IA64_REG_CR_PMV, 1 << 16); a79561134f38de Zou Nan hai 2006-12-07 115 ia64_setreg(_IA64_REG_CR_CMCV, 1 << 16); a79561134f38de Zou Nan hai 2006-12-07 116 a79561134f38de Zou Nan hai 2006-12-07 117 /* Mask ITV and Local Redirect Registers */ a79561134f38de Zou Nan hai 2006-12-07 118 ia64_set_itv(1 << 16); a79561134f38de Zou Nan hai 2006-12-07 119 ia64_set_lrr0(1 << 16); a79561134f38de Zou Nan hai 2006-12-07 120 ia64_set_lrr1(1 << 16); a79561134f38de Zou Nan hai 2006-12-07 121 a79561134f38de Zou Nan hai 2006-12-07 122 /* terminate possible nested in-service interrupts */ a79561134f38de Zou Nan hai 2006-12-07 123 for (ii = 0; ii < 16; ii++) a79561134f38de Zou Nan hai 2006-12-07 124 ia64_eoi(); a79561134f38de Zou Nan hai 2006-12-07 125 a79561134f38de Zou Nan hai 2006-12-07 126 /* unmask TPR and clear any pending interrupts */ a79561134f38de Zou Nan hai 2006-12-07 127 ia64_setreg(_IA64_REG_CR_TPR, 0); a79561134f38de Zou Nan hai 2006-12-07 128 ia64_srlz_d(); a62c9fe4637f62 Simon Horman 2007-09-19 129 while (ia64_get_ivr() != IA64_SPURIOUS_INT_VECTOR) a79561134f38de Zou Nan hai 2006-12-07 130 ia64_eoi(); a79561134f38de Zou Nan hai 2006-12-07 131 rnk = (relocate_new_kernel_t)&code_addr; a79561134f38de Zou Nan hai 2006-12-07 @132 (*rnk)(image->head, image->start, ia64_boot_param, a79561134f38de Zou Nan hai 2006-12-07 133 GRANULEROUNDDOWN((unsigned long) pal_addr)); a79561134f38de Zou Nan hai 2006-12-07 134 BUG(); a79561134f38de Zou Nan hai 2006-12-07 135 } a79561134f38de Zou Nan hai 2006-12-07 136 :::::: The code at line 132 was first introduced by commit :::::: a79561134f38de12dce14ed72138f38e55ef53fc [IA64] IA64 Kexec/kdump :::::: TO: Zou Nan hai :::::: CC: Tony Luck -- 0-DAY CI Kernel Test Service https://01.org/lkp