Hi Andrey, kernel test robot noticed the following build errors:
[auto build test ERROR on tip/x86/core] [also build test ERROR on akpm-mm/mm-nonmm-unstable akpm-mm/mm-everything linus/master v6.14-rc6 next-20250307] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andrey-Ryabinin/kstate-Add-kstate-a-mechanism-to-describe-and-migrate-kernel-state-across-kexec/20250310-200803 base: tip/x86/core patch link: https://lore.kernel.org/r/20250310120318.2124-5-arbn%40yandex-team.com patch subject: [PATCH v2 4/7] kexec, kstate: delay loading of kexec segments config: riscv-randconfig-002-20250311 (https://download.01.org/0day-ci/archive/20250311/202503112016.vzt1hd9v-...@intel.com/config) compiler: riscv64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250311/202503112016.vzt1hd9v-...@intel.com/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 <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202503112016.vzt1hd9v-...@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/vmcore_info.c:24: kernel/kexec_internal.h: In function 'kexec_late_load': >> kernel/kexec_internal.h:39:50: error: invalid use of undefined type 'struct >> kimage' 39 | return IS_ENABLED(CONFIG_KSTATE) && image->file_mode && | ^~ kernel/kexec_internal.h:40:23: error: invalid use of undefined type 'struct kimage' 40 | (image->type == KEXEC_TYPE_DEFAULT); | ^~ >> kernel/kexec_internal.h:40:33: error: 'KEXEC_TYPE_DEFAULT' undeclared (first >> use in this function); did you mean 'KEXEC_ARCH_DEFAULT'? 40 | (image->type == KEXEC_TYPE_DEFAULT); | ^~~~~~~~~~~~~~~~~~ | KEXEC_ARCH_DEFAULT kernel/kexec_internal.h:40:33: note: each undeclared identifier is reported only once for each function it appears in vim +39 kernel/kexec_internal.h 36 37 static inline bool kexec_late_load(struct kimage *image) 38 { > 39 return IS_ENABLED(CONFIG_KSTATE) && image->file_mode && > 40 (image->type == KEXEC_TYPE_DEFAULT); 41 } 42 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki