[PATCH 2/6] kho: use acronym for KHO .c files

From: Pratyush Yadav

Date: Fri Nov 27 2026 - 07:26:02 EST


From: "Pratyush Yadav (Google)" <pratyush@xxxxxxxxxx>

KHO started its life in kernel/. At the time, its name matched the
pattern of other kexec files like kexec_core.c or kexec_file.c.

Commit 48a1b2321d76 ("liveupdate: kho: move to kernel/liveupdate") moved
into liveupdate/. Files in liveupdate/ use acronyms like luo_core.c,
mainly because the wider context is already available in the directory
name.

Save some keystrokes and rename the kexec_handover_* files to kho_*.

Signed-off-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>
---
Documentation/core-api/kho/index.rst | 2 +-
MAINTAINERS | 2 +-
kernel/liveupdate/Makefile | 4 ++--
kernel/liveupdate/{kexec_handover.c => kho_core.c} | 4 ++--
.../liveupdate/{kexec_handover_debugfs.c => kho_debugfs.c} | 4 ++--
.../{kexec_handover_internal.h => kho_internal.h} | 6 +++---
kernel/liveupdate/luo_core.c | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
rename kernel/liveupdate/{kexec_handover.c => kho_core.c} (99%)
rename kernel/liveupdate/{kexec_handover_debugfs.c => kho_debugfs.c} (97%)
rename kernel/liveupdate/{kexec_handover_internal.h => kho_internal.h} (91%)

diff --git a/Documentation/core-api/kho/index.rst b/Documentation/core-api/kho/index.rst
index ce2bf9cf6651..fc759213ddb9 100644
--- a/Documentation/core-api/kho/index.rst
+++ b/Documentation/core-api/kho/index.rst
@@ -89,7 +89,7 @@ Kexec Handover Radix Tree
Public API
==========

-.. kernel-doc:: kernel/liveupdate/kexec_handover.c
+.. kernel-doc:: kernel/liveupdate/kho_core.c
:export:

KHO Serialization Blocks API
diff --git a/MAINTAINERS b/MAINTAINERS
index a946fbbd74f0..fa9ee8051139 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14785,7 +14785,7 @@ 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/kexec_handover*
+F: kernel/liveupdate/kho_*
F: lib/test_kho.c
F: tools/testing/selftests/kho/

diff --git a/kernel/liveupdate/Makefile b/kernel/liveupdate/Makefile
index bc679905ce3f..b73e19587f7f 100644
--- a/kernel/liveupdate/Makefile
+++ b/kernel/liveupdate/Makefile
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: GPL-2.0

kho-y := \
- kexec_handover.o \
+ kho_core.o \
kho_block.o

-kho-$(CONFIG_KEXEC_HANDOVER_DEBUGFS) += kexec_handover_debugfs.o
+kho-$(CONFIG_KEXEC_HANDOVER_DEBUGFS) += kho_debugfs.o

obj-$(CONFIG_KEXEC_HANDOVER) += kho.o

diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kho_core.c
similarity index 99%
rename from kernel/liveupdate/kexec_handover.c
rename to kernel/liveupdate/kho_core.c
index 38e65d210cb9..7544bc0b99e5 100644
--- a/kernel/liveupdate/kexec_handover.c
+++ b/kernel/liveupdate/kho_core.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * kexec_handover.c - kexec handover metadata processing
+ * kho_core.c - kexec handover metadata processing
* Copyright (C) 2023 Alexander Graf <graf@xxxxxxxxxx>
* Copyright (C) 2025 Microsoft Corporation, Mike Rapoport <rppt@xxxxxxxxxx>
* Copyright (C) 2025 Google LLC, Changyuan Lyu <changyuanl@xxxxxxxxxx>
@@ -39,7 +39,7 @@
#include "../../mm/mm_init.h"
#include "../../mm/vmalloc.h"
#include "../kexec_internal.h"
-#include "kexec_handover_internal.h"
+#include "kho_internal.h"

/*
* This is the minimal alignment required by deferred struct page init.
diff --git a/kernel/liveupdate/kexec_handover_debugfs.c b/kernel/liveupdate/kho_debugfs.c
similarity index 97%
rename from kernel/liveupdate/kexec_handover_debugfs.c
rename to kernel/liveupdate/kho_debugfs.c
index 3a91c47ad7a6..8d04368c1978 100644
--- a/kernel/liveupdate/kexec_handover_debugfs.c
+++ b/kernel/liveupdate/kho_debugfs.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * kexec_handover_debugfs.c - kexec handover debugfs interfaces
+ * kho_debugfs.c - kexec handover debugfs interfaces
* Copyright (C) 2023 Alexander Graf <graf@xxxxxxxxxx>
* Copyright (C) 2025 Microsoft Corporation, Mike Rapoport <rppt@xxxxxxxxxx>
* Copyright (C) 2025 Google LLC, Changyuan Lyu <changyuanl@xxxxxxxxxx>
@@ -13,7 +13,7 @@
#include <linux/libfdt.h>
#include <linux/mm.h>
#include <linux/kho/abi/kexec_handover.h>
-#include "kexec_handover_internal.h"
+#include "kho_internal.h"

static struct dentry *debugfs_root;

diff --git a/kernel/liveupdate/kexec_handover_internal.h b/kernel/liveupdate/kho_internal.h
similarity index 91%
rename from kernel/liveupdate/kexec_handover_internal.h
rename to kernel/liveupdate/kho_internal.h
index e9685e1ef6d7..5b349f451cf6 100644
--- a/kernel/liveupdate/kexec_handover_internal.h
+++ b/kernel/liveupdate/kho_internal.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef LINUX_KEXEC_HANDOVER_INTERNAL_H
-#define LINUX_KEXEC_HANDOVER_INTERNAL_H
+#ifndef LINUX_KHO_INTERNAL_H
+#define LINUX_KHO_INTERNAL_H

#include <linux/kexec_handover.h>
#include <linux/list.h>
@@ -41,4 +41,4 @@ static inline void kho_debugfs_blob_remove(struct kho_debugfs *dbg,
void *blob) { }
#endif /* CONFIG_KEXEC_HANDOVER_DEBUGFS */

-#endif /* LINUX_KEXEC_HANDOVER_INTERNAL_H */
+#endif /* LINUX_KHO_INTERNAL_H */
diff --git a/kernel/liveupdate/luo_core.c b/kernel/liveupdate/luo_core.c
index 1b2bda22902d..a9215eca9e7e 100644
--- a/kernel/liveupdate/luo_core.c
+++ b/kernel/liveupdate/luo_core.c
@@ -61,7 +61,7 @@
#include <linux/sizes.h>
#include <linux/string.h>

-#include "kexec_handover_internal.h"
+#include "kho_internal.h"
#include "luo_internal.h"

static struct {
--
2.56.1.839.g22a8290db9-goog