linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4972/5926] kernel/kexec_handover_debug.c:16:18: error: use of undeclared identifier 'kho_scratch_cnt'
@ 2025-11-04 14:48 kernel test robot
  2025-11-04 15:38 ` Mike Rapoport
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2025-11-04 14:48 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List

Hi Mike,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   17490bd0527f59d841168457b245581f314b5fa0
commit: 8c211175c3abcebb8bffce8095d78d193e482105 [4972/5926] liveupdate-kho-warn-and-fail-on-metadata-or-preserved-memory-in-scratch-area-fix
config: x86_64-randconfig-071-20251104 (https://download.01.org/0day-ci/archive/20251104/202511042251.paO6f5BZ-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251104/202511042251.paO6f5BZ-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511042251.paO6f5BZ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/kexec_handover_debug.c:16:18: error: use of undeclared identifier 'kho_scratch_cnt'
      16 |         for (i = 0; i < kho_scratch_cnt; i++) {
         |                         ^
>> kernel/kexec_handover_debug.c:17:19: error: use of undeclared identifier 'kho_scratch'
      17 |                 scratch_start = kho_scratch[i].addr;
         |                                 ^
   kernel/kexec_handover_debug.c:18:17: error: use of undeclared identifier 'kho_scratch'
      18 |                 scratch_end = kho_scratch[i].addr + kho_scratch[i].size;
         |                               ^
   kernel/kexec_handover_debug.c:18:39: error: use of undeclared identifier 'kho_scratch'
      18 |                 scratch_end = kho_scratch[i].addr + kho_scratch[i].size;
         |                                                     ^
   4 errors generated.


vim +/kho_scratch_cnt +16 kernel/kexec_handover_debug.c

4039a00022d42a Pasha Tatashin 2025-10-20  10  
4039a00022d42a Pasha Tatashin 2025-10-20  11  bool kho_scratch_overlap(phys_addr_t phys, size_t size)
4039a00022d42a Pasha Tatashin 2025-10-20  12  {
4039a00022d42a Pasha Tatashin 2025-10-20  13  	phys_addr_t scratch_start, scratch_end;
4039a00022d42a Pasha Tatashin 2025-10-20  14  	unsigned int i;
4039a00022d42a Pasha Tatashin 2025-10-20  15  
4039a00022d42a Pasha Tatashin 2025-10-20 @16  	for (i = 0; i < kho_scratch_cnt; i++) {
4039a00022d42a Pasha Tatashin 2025-10-20 @17  		scratch_start = kho_scratch[i].addr;

:::::: The code at line 16 was first introduced by commit
:::::: 4039a00022d42ac3d68b2eea63066bc9f7ef89ce kho: warn and fail on metadata or preserved memory in scratch area

:::::: TO: Pasha Tatashin <pasha.tatashin@soleen.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-04 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 14:48 [linux-next:master 4972/5926] kernel/kexec_handover_debug.c:16:18: error: use of undeclared identifier 'kho_scratch_cnt' kernel test robot
2025-11-04 15:38 ` Mike Rapoport
2025-11-04 17:32   ` Pasha Tatashin
2025-11-04 17:50     ` Pasha Tatashin
2025-11-04 22:15       ` Andrew Morton
2025-11-04 23:12         ` Pasha Tatashin
2025-11-04 23:54           ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox