Skip to contentSkip to conversation

test_kho-always-print-restore-status.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 27, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: test_kho: always print restore status
has been removed from the -mm tree. Its filename was
test_kho-always-print-restore-status.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Pratyush Yadav <[email protected]>
Subject: test_kho: always print restore status
Date: Tue, 18 Nov 2025 19:10:45 +0100

Currently the KHO test only prints a message on success, and remains silent on failure. This makes it difficult to notice a failing test. A failing test is usually more interesting than a successful one.

Always print the test status after attempting restore.

---

 lib/test_kho.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
lib/test_kho.c renamed from lib/test_kho.c~test_kho-always-print-restore-status +9 -3
@@ -306,7 +306,6 @@ static int kho_test_restore(phys_addr_t
 	if (err)
 		return err;
 
-	pr_info("KHO restore succeeded\n");
 	return 0;
 }
 
@@ -319,8 +318,15 @@ static int __init kho_test_init(void)
 		return 0;
 
 	err = kho_retrieve_subtree(KHO_TEST_FDT, &fdt_phys);
-	if (!err)
-		return kho_test_restore(fdt_phys);
+	if (!err) {
+		err = kho_test_restore(fdt_phys);
+		if (err)
+			pr_err("KHO restore failed\n");
+		else
+			pr_info("KHO restore succeeded\n");
+
+		return err;
+	}
 
 	if (err != -ENOENT) {
 		pr_warn("failed to retrieve %s FDT: %d\n", KHO_TEST_FDT, err);

_

Patches currently in -mm which might be from [email protected] are