[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210215185908.257724-2-pasha.tatashin@soleen.com>
Date: Mon, 15 Feb 2021 13:59:08 -0500
From: Pavel Tatashin <pasha.tatashin@...een.com>
To: pasha.tatashin@...een.com, linux-arm-kernel@...ts.infradead.org,
jmorris@...ei.org, linux-kernel@...r.kernel.org,
tyhicks@...ux.microsoft.com, will@...nel.org, james.morse@....com,
ebiederm@...ssion.com, kexec@...ts.infradead.org
Subject: [PATCH 1/1] kexec: move machine_kexec_post_load() to public interface
machine_kexec_post_load() is called after kexec load is finished. It must
be declared in public header not in kexec_internal.h
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Pavel Tatashin <pasha.tatashin@...een.com>
---
include/linux/kexec.h | 2 ++
kernel/kexec_internal.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 9e93bef52968..3671b845cf28 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -309,6 +309,8 @@ extern void machine_kexec_cleanup(struct kimage *image);
extern int kernel_kexec(void);
extern struct page *kimage_alloc_control_pages(struct kimage *image,
unsigned int order);
+int machine_kexec_post_load(struct kimage *image);
+
extern void __crash_kexec(struct pt_regs *);
extern void crash_kexec(struct pt_regs *);
int kexec_should_crash(struct task_struct *);
diff --git a/kernel/kexec_internal.h b/kernel/kexec_internal.h
index 39d30ccf8d87..48aaf2ac0d0d 100644
--- a/kernel/kexec_internal.h
+++ b/kernel/kexec_internal.h
@@ -13,8 +13,6 @@ void kimage_terminate(struct kimage *image);
int kimage_is_destination_range(struct kimage *image,
unsigned long start, unsigned long end);
-int machine_kexec_post_load(struct kimage *image);
-
extern struct mutex kexec_mutex;
#ifdef CONFIG_KEXEC_FILE
--
2.25.1
Powered by blists - more mailing lists