summaryrefslogtreecommitdiff
path: root/lib/test_kho.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2025-11-27 14:17:02 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-11-27 14:17:02 -0800
commitbc947af67759c2d229e31af9bf232f9ade6145d8 (patch)
treea3f5c1731f5367a60df47cafa194260ed63afaa0 /lib/test_kho.c
parent58b6fcd2ab34399258dc509f701d0986a8e0bcaa (diff)
parent7c9580f44f90f7a4c11fc7831efe323ebe446091 (diff)
Merge branch 'mm-hotfixes-stable' into mm-nonmm-stable in order to be able
to merge "kho: make debugfs interface optional" into mm-nonmm-stable.
Diffstat (limited to 'lib/test_kho.c')
-rw-r--r--lib/test_kho.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/test_kho.c b/lib/test_kho.c
index 60cd899ea745..fff018e5548d 100644
--- a/lib/test_kho.c
+++ b/lib/test_kho.c
@@ -301,6 +301,9 @@ static int __init kho_test_init(void)
phys_addr_t fdt_phys;
int err;
+ if (!kho_is_enabled())
+ return 0;
+
err = kho_retrieve_subtree(KHO_TEST_FDT, &fdt_phys);
if (!err)
return kho_test_restore(fdt_phys);