All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel/kexec_core.c:1253 crash_cma_ranges_show() warn: we never enter this loop
@ 2026-06-15  2:27 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-06-15  2:27 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sourabh Jain <sourabhjain@linux.ibm.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8cd9520d35a6c38db6567e97dd93b1f11f185dc6
commit: cf4340bdd967fe7f37b4361c85370515f11f4a37 kexec: move sysfs entries to /sys/kernel/kexec
date:   7 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 7 months ago
config: i386-randconfig-141-20260614 (https://download.01.org/0day-ci/archive/20260615/202606151049.DPSumIO0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9185-gbcc58b9c

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
| Fixes: cf4340bdd967 ("kexec: move sysfs entries to /sys/kernel/kexec")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202606151049.DPSumIO0-lkp@intel.com/

smatch warnings:
kernel/kexec_core.c:1253 crash_cma_ranges_show() warn: we never enter this loop

vim +1253 kernel/kexec_core.c

cf4340bdd967fe Sourabh Jain 2025-11-18  1249  
cf4340bdd967fe Sourabh Jain 2025-11-18  1250  	ssize_t len = 0;
cf4340bdd967fe Sourabh Jain 2025-11-18  1251  	int i;
cf4340bdd967fe Sourabh Jain 2025-11-18  1252  
cf4340bdd967fe Sourabh Jain 2025-11-18 @1253  	for (i = 0; i < crashk_cma_cnt; ++i) {
cf4340bdd967fe Sourabh Jain 2025-11-18  1254  		len += sysfs_emit_at(buf, len, "%08llx-%08llx\n",
cf4340bdd967fe Sourabh Jain 2025-11-18  1255  				     crashk_cma_ranges[i].start,
cf4340bdd967fe Sourabh Jain 2025-11-18  1256  				     crashk_cma_ranges[i].end);
cf4340bdd967fe Sourabh Jain 2025-11-18  1257  	}
cf4340bdd967fe Sourabh Jain 2025-11-18  1258  	return len;
cf4340bdd967fe Sourabh Jain 2025-11-18  1259  }
cf4340bdd967fe Sourabh Jain 2025-11-18  1260  static struct kobj_attribute crash_cma_ranges_attr = __ATTR_RO(crash_cma_ranges);
cf4340bdd967fe Sourabh Jain 2025-11-18  1261  #endif
cf4340bdd967fe Sourabh Jain 2025-11-18  1262  

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* kernel/kexec_core.c:1253 crash_cma_ranges_show() warn: we never enter this loop
@ 2026-03-04 23:39 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-04 23:39 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sourabh Jain <sourabhjain@linux.ibm.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ecc64d2dc9ff9738d2a896beb68e02c2feaf9a02
commit: cf4340bdd967fe7f37b4361c85370515f11f4a37 kexec: move sysfs entries to /sys/kernel/kexec
date:   3 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 3 months ago
config: i386-randconfig-141-20260305 (https://download.01.org/0day-ci/archive/20260305/202603050703.t77oFseJ-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
smatch: v0.5.0-9004-gb810ac53

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202603050703.t77oFseJ-lkp@intel.com/

smatch warnings:
kernel/kexec_core.c:1253 crash_cma_ranges_show() warn: we never enter this loop

vim +1253 kernel/kexec_core.c

cf4340bdd967fe Sourabh Jain 2025-11-18  1249  
cf4340bdd967fe Sourabh Jain 2025-11-18  1250  	ssize_t len = 0;
cf4340bdd967fe Sourabh Jain 2025-11-18  1251  	int i;
cf4340bdd967fe Sourabh Jain 2025-11-18  1252  
cf4340bdd967fe Sourabh Jain 2025-11-18 @1253  	for (i = 0; i < crashk_cma_cnt; ++i) {
cf4340bdd967fe Sourabh Jain 2025-11-18  1254  		len += sysfs_emit_at(buf, len, "%08llx-%08llx\n",
cf4340bdd967fe Sourabh Jain 2025-11-18  1255  				     crashk_cma_ranges[i].start,
cf4340bdd967fe Sourabh Jain 2025-11-18  1256  				     crashk_cma_ranges[i].end);
cf4340bdd967fe Sourabh Jain 2025-11-18  1257  	}
cf4340bdd967fe Sourabh Jain 2025-11-18  1258  	return len;
cf4340bdd967fe Sourabh Jain 2025-11-18  1259  }
cf4340bdd967fe Sourabh Jain 2025-11-18  1260  static struct kobj_attribute crash_cma_ranges_attr = __ATTR_RO(crash_cma_ranges);
cf4340bdd967fe Sourabh Jain 2025-11-18  1261  #endif
cf4340bdd967fe Sourabh Jain 2025-11-18  1262  

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

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

end of thread, other threads:[~2026-06-15  2:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15  2:27 kernel/kexec_core.c:1253 crash_cma_ranges_show() warn: we never enter this loop kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-03-04 23:39 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.