Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kho: remove unnecessary WARN_ON(err) in kho_populate()

The following pr_warn() provides detailed error and location information,
WARN_ON(err) adds no additional debugging value, so remove the redundant
WARN_ON() call.

Link: https://lkml.kernel.org/r/20260212111146.210086-3-ranxiaokai627@163.com
Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Alexander Graf <graf@amazon.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Ran Xiaokai and committed by
Andrew Morton
f7a553b8 34df6c47

+1 -1
+1 -1
kernel/liveupdate/kexec_handover.c
··· 1507 1507 1508 1508 memblock_add(area->addr, size); 1509 1509 err = memblock_mark_kho_scratch(area->addr, size); 1510 - if (WARN_ON(err)) { 1510 + if (err) { 1511 1511 pr_warn("failed to mark the scratch region 0x%pa+0x%pa: %pe", 1512 1512 &area->addr, &size, ERR_PTR(err)); 1513 1513 goto unmap_scratch;