Hi Youling,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.17-rc1 next-20250815]
[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/Youling-Tang/LoongArch-Add-struct-loongarch_image_header-for-kernel-image/20250811-174725
base:   linus/master
patch link:    
https://lore.kernel.org/r/20250811092659.14903-3-youling.tang%40linux.dev
patch subject: [PATCH 2/6] LoongArch: Add kexec_file support
config: loongarch-randconfig-r121-20250816 
(https://download.01.org/0day-ci/archive/20250816/202508161329.m5axl1xa-...@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
reproduce: 
(https://download.01.org/0day-ci/archive/20250816/202508161329.m5axl1xa-...@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/202508161329.m5axl1xa-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/loongarch/kernel/kexec_image.c:19:
>> arch/loongarch/include/asm/image.h:40:22: warning: 'loongarch_pe_machtype' 
>> defined but not used [-Wunused-const-variable=]
      40 | static const uint8_t loongarch_pe_machtype[6] = {'P', 'E', 0x0, 0x0, 
0x64, 0x62};
         |                      ^~~~~~~~~~~~~~~~~~~~~

sparse warnings: (new ones prefixed by >>)
>> arch/loongarch/kernel/kexec_image.c:63:22: sparse: sparse: cast to 
>> restricted __le64
   arch/loongarch/kernel/kexec_image.c:64:23: sparse: sparse: cast to 
restricted __le64

vim +/loongarch_pe_machtype +40 arch/loongarch/include/asm/image.h

    38  
    39  static const uint8_t loongarch_image_pe_sig[2] = {'M', 'Z'};
  > 40  static const uint8_t loongarch_pe_machtype[6] = {'P', 'E', 0x0, 0x0, 
0x64, 0x62};
    41  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to