Skip to contentSkip to conversation

kexec-remove-unnecessary-arch_kexec_kernel_image_load.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Apr 6, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kexec: remove unnecessary arch_kexec_kernel_image_load()
has been removed from the -mm tree. Its filename was
kexec-remove-unnecessary-arch_kexec_kernel_image_load.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: Bjorn Helgaas <[email protected]>
Subject: kexec: remove unnecessary arch_kexec_kernel_image_load()
Date: Tue, 7 Mar 2023 16:44:16 -0600

arch_kexec_kernel_image_load() only calls kexec_image_load_default(), and there are no arch-specific implementations.

Remove the unnecessary arch_kexec_kernel_image_load() and make kexec_image_load_default() static.

No functional change intended.

---

 include/linux/kexec.h |    6 ------
 kernel/kexec_file.c   |    6 +++---
 2 files changed, 3 insertions(+), 9 deletions(-)
include/linux/kexec.h renamed from include/linux/kexec.h~kexec-remove-unnecessary-arch_kexec_kernel_image_load +0 -6
@@ -190,7 +190,6 @@ int kexec_purgatory_get_set_symbol(struc
 				   void *buf, unsigned int size,
 				   bool get_value);
 void *kexec_purgatory_get_symbol_addr(struct kimage *image, const char *name);
-void *kexec_image_load_default(struct kimage *image);
 
 #ifndef arch_kexec_kernel_image_probe
 static inline int
@@ -207,11 +206,6 @@ static inline int arch_kimage_file_post_
 }
 #endif
 
-static inline void *arch_kexec_kernel_image_load(struct kimage *image)
-{
-	return kexec_image_load_default(image);
-}
-
 #ifdef CONFIG_KEXEC_SIG
 #ifdef CONFIG_SIGNED_PE_FILE_VERIFICATION
 int kexec_kernel_verify_pe_sig(const char *kernel, unsigned long kernel_len);
kernel/kexec_file.c renamed from kernel/kexec_file.c~kexec-remove-unnecessary-arch_kexec_kernel_image_load +3 -3
@@ -65,7 +65,7 @@ int kexec_image_probe_default(struct kim
 	return ret;
 }
 
-void *kexec_image_load_default(struct kimage *image)
+static void *kexec_image_load_default(struct kimage *image)
 {
 	if (!image->fops || !image->fops->load)
 		return ERR_PTR(-ENOEXEC);
@@ -249,8 +249,8 @@ kimage_file_prepare_segments(struct kima
 	/* IMA needs to pass the measurement list to the next kernel. */
 	ima_add_kexec_buffer(image);
 
-	/* Call arch image load handlers */
-	ldata = arch_kexec_kernel_image_load(image);
+	/* Call image load handler */
+	ldata = kexec_image_load_default(image);
 
 	if (IS_ERR(ldata)) {
 		ret = PTR_ERR(ldata);

_

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