[PATCH 3/6] kho: move kho_{block,radix_tree}.h into include/linux/kho/
From: Pratyush Yadav
Date: Fri Nov 27 2026 - 07:26:05 EST
From: "Pratyush Yadav (Google)" <pratyush@xxxxxxxxxx>
Hierarchical file systems have been around for a while now. Let's use
them.
Signed-off-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>
---
Documentation/core-api/kho/index.rst | 4 ++--
MAINTAINERS | 1 -
drivers/pci/liveupdate.c | 2 +-
include/linux/{kho_block.h => kho/block.h} | 0
include/linux/{kho_radix_tree.h => kho/radix_tree.h} | 0
kernel/liveupdate/kho_block.c | 2 +-
kernel/liveupdate/kho_core.c | 2 +-
kernel/liveupdate/luo_internal.h | 2 +-
kernel/liveupdate/luo_session.c | 2 +-
9 files changed, 7 insertions(+), 8 deletions(-)
rename include/linux/{kho_block.h => kho/block.h} (100%)
rename include/linux/{kho_radix_tree.h => kho/radix_tree.h} (100%)
diff --git a/Documentation/core-api/kho/index.rst b/Documentation/core-api/kho/index.rst
index fc759213ddb9..b09547e10ba2 100644
--- a/Documentation/core-api/kho/index.rst
+++ b/Documentation/core-api/kho/index.rst
@@ -83,7 +83,7 @@ the next KHO, because kexec can overwrite even the original kernel.
Kexec Handover Radix Tree
=========================
-.. kernel-doc:: include/linux/kho_radix_tree.h
+.. kernel-doc:: include/linux/kho/radix_tree.h
:doc: Kexec Handover Radix Tree
Public API
@@ -98,7 +98,7 @@ KHO Serialization Blocks API
.. kernel-doc:: kernel/liveupdate/kho_block.c
:doc: KHO Serialization Blocks
-.. kernel-doc:: include/linux/kho_block.h
+.. kernel-doc:: include/linux/kho/block.h
.. kernel-doc:: kernel/liveupdate/kho_block.c
:internal:
diff --git a/MAINTAINERS b/MAINTAINERS
index fa9ee8051139..4469f9978ecd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14784,7 +14784,6 @@ F: Documentation/core-api/kho/*
F: include/asm-generic/kexec_handover.h
F: include/linux/kexec_handover.h
F: include/linux/kho/
-F: include/linux/kho_block.h
F: kernel/liveupdate/kho_*
F: lib/test_kho.c
F: tools/testing/selftests/kho/
diff --git a/drivers/pci/liveupdate.c b/drivers/pci/liveupdate.c
index 76e939ea52eb..d99d2eb4e2ad 100644
--- a/drivers/pci/liveupdate.c
+++ b/drivers/pci/liveupdate.c
@@ -207,7 +207,7 @@
#include <linux/io.h>
#include <linux/kexec_handover.h>
#include <linux/kho/abi/pci.h>
-#include <linux/kho_block.h>
+#include <linux/kho/block.h>
#include <linux/liveupdate.h>
#include <linux/mm.h>
#include <linux/mutex.h>
diff --git a/include/linux/kho_block.h b/include/linux/kho/block.h
similarity index 100%
rename from include/linux/kho_block.h
rename to include/linux/kho/block.h
diff --git a/include/linux/kho_radix_tree.h b/include/linux/kho/radix_tree.h
similarity index 100%
rename from include/linux/kho_radix_tree.h
rename to include/linux/kho/radix_tree.h
diff --git a/kernel/liveupdate/kho_block.c b/kernel/liveupdate/kho_block.c
index 0d2a342ef422..6cedcd36bfd2 100644
--- a/kernel/liveupdate/kho_block.c
+++ b/kernel/liveupdate/kho_block.c
@@ -23,7 +23,7 @@
#include <linux/io.h>
#include <linux/kexec_handover.h>
#include <linux/kho/abi/block.h>
-#include <linux/kho_block.h>
+#include <linux/kho/block.h>
#include <linux/slab.h>
/*
diff --git a/kernel/liveupdate/kho_core.c b/kernel/liveupdate/kho_core.c
index 7544bc0b99e5..3f9d408b9d29 100644
--- a/kernel/liveupdate/kho_core.c
+++ b/kernel/liveupdate/kho_core.c
@@ -18,7 +18,7 @@
#include <linux/kasan.h>
#include <linux/kexec.h>
#include <linux/kexec_handover.h>
-#include <linux/kho_radix_tree.h>
+#include <linux/kho/radix_tree.h>
#include <linux/utsname.h>
#include <linux/kho/abi/kexec_handover.h>
#include <linux/kho/abi/kexec_metadata.h>
diff --git a/kernel/liveupdate/luo_internal.h b/kernel/liveupdate/luo_internal.h
index dac6644bfb18..6c034be2d390 100644
--- a/kernel/liveupdate/luo_internal.h
+++ b/kernel/liveupdate/luo_internal.h
@@ -10,7 +10,7 @@
#include <linux/liveupdate.h>
#include <linux/uaccess.h>
-#include <linux/kho_block.h>
+#include <linux/kho/block.h>
struct luo_ucmd {
void __user *ubuffer;
diff --git a/kernel/liveupdate/luo_session.c b/kernel/liveupdate/luo_session.c
index f1b86f701238..1ed914db513d 100644
--- a/kernel/liveupdate/luo_session.c
+++ b/kernel/liveupdate/luo_session.c
@@ -90,7 +90,7 @@
#include <linux/fs.h>
#include <linux/io.h>
#include <linux/kexec_handover.h>
-#include <linux/kho_block.h>
+#include <linux/kho/block.h>
#include <linux/kho/abi/luo.h>
#include <linux/list.h>
#include <linux/liveupdate.h>
--
2.56.1.839.g22a8290db9-goog