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: i386-buildonly-randconfig-003-20250311 
(https://download.01.org/0day-ci/archive/20250311/202503111944.pfx9udvp-...@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project 
cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250311/202503111944.pfx9udvp-...@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/202503111944.pfx9udvp-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/vmcore_info.c:24:
>> kernel/kexec_internal.h:39:43: error: incomplete definition of type 'struct 
>> kimage'
      39 |         return IS_ENABLED(CONFIG_KSTATE) && image->file_mode &&
         |                                             ~~~~~^
   kernel/kexec_internal.h:9:8: note: forward declaration of 'struct kimage'
       9 | struct kimage *do_kimage_alloc_init(void);
         |        ^
   kernel/kexec_internal.h:40:9: error: incomplete definition of type 'struct 
kimage'
      40 |                 (image->type == KEXEC_TYPE_DEFAULT);
         |                  ~~~~~^
   kernel/kexec_internal.h:9:8: note: forward declaration of 'struct kimage'
       9 | struct kimage *do_kimage_alloc_init(void);
         |        ^
>> kernel/kexec_internal.h:40:19: error: use of undeclared identifier 
>> 'KEXEC_TYPE_DEFAULT'
      40 |                 (image->type == KEXEC_TYPE_DEFAULT);
         |                                 ^
   3 errors generated.


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

Reply via email to