lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202602050807.0QRxP8b3-lkp@intel.com>
Date: Thu, 5 Feb 2026 08:22:32 +0800
From: kernel test robot <lkp@...el.com>
To: Sasha Levin <sashal@...nel.org>, pasha.tatashin@...een.com,
	rppt@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, pratyush@...nel.org,
	linux-kernel@...r.kernel.org, surenb@...gle.com,
	Sasha Levin <sashal@...nel.org>
Subject: Re: [PATCH] kexec: allow KEXEC_HANDOVER to build with COMPILE_TEST

Hi Sasha,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.19-rc8 next-20260204]
[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/Sasha-Levin/kexec-allow-KEXEC_HANDOVER-to-build-with-COMPILE_TEST/20260205-023202
base:   linus/master
patch link:    https://lore.kernel.org/r/20260204182816.2463931-1-sashal%40kernel.org
patch subject: [PATCH] kexec: allow KEXEC_HANDOVER to build with COMPILE_TEST
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260205/202602050807.0QRxP8b3-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260205/202602050807.0QRxP8b3-lkp@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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602050807.0QRxP8b3-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/liveupdate/kexec_handover_debugfs.c: In function 'scratch_phys_show':
>> kernel/liveupdate/kexec_handover_debugfs.c:99:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
      99 |                 seq_printf(m, "0x%llx\n", kho_scratch[i].addr);
         |                                  ~~~^     ~~~~~~~~~~~~~~~~~~~
         |                                     |                   |
         |                                     |                   phys_addr_t {aka unsigned int}
         |                                     long long unsigned int
         |                                  %x
   kernel/liveupdate/kexec_handover_debugfs.c: In function 'scratch_len_show':
   kernel/liveupdate/kexec_handover_debugfs.c:108:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
     108 |                 seq_printf(m, "0x%llx\n", kho_scratch[i].size);
         |                                  ~~~^     ~~~~~~~~~~~~~~~~~~~
         |                                     |                   |
         |                                     |                   phys_addr_t {aka unsigned int}
         |                                     long long unsigned int
         |                                  %x
   In file included from include/linux/io.h:12,
                    from kernel/liveupdate/kexec_handover_debugfs.c:13:
   kernel/liveupdate/kexec_handover_debugfs.c: In function 'kho_in_debugfs_init':
>> arch/sh/include/asm/io.h:266:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     266 | #define phys_to_virt(address)   ((void *)(address))
         |                                  ^
   kernel/liveupdate/kexec_handover_debugfs.c:151:45: note: in expansion of macro 'phys_to_virt'
     151 |                                             phys_to_virt(*fdt_phys));
         |                                             ^~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for CMA
   Depends on [n]: MMU [=n]
   Selected by [y]:
   - KEXEC_HANDOVER [=y] && (ARCH_SUPPORTS_KEXEC_HANDOVER && ARCH_SUPPORTS_KEXEC_FILE || COMPILE_TEST [=y]) && (!DEFERRED_STRUCT_PAGE_INIT [=n] || COMPILE_TEST [=y])


vim +99 kernel/liveupdate/kexec_handover_debugfs.c

03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   92  
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   93  DEFINE_DEBUGFS_ATTRIBUTE(kho_out_finalize_fops, kho_out_finalize_get,
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   94  			 kho_out_finalize_set, "%llu\n");
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   95  
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   96  static int scratch_phys_show(struct seq_file *m, void *v)
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   97  {
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01   98  	for (int i = 0; i < kho_scratch_cnt; i++)
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  @99  		seq_printf(m, "0x%llx\n", kho_scratch[i].addr);
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  100  
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  101  	return 0;
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  102  }
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  103  DEFINE_SHOW_ATTRIBUTE(scratch_phys);
03d3963464a436 kernel/kexec_handover_debugfs.c Pasha Tatashin 2025-11-01  104  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ