summaryrefslogtreecommitdiffstats
path: root/kernel/kexec_file.c
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2018-11-15 06:52:41 +0100
committerWill Deacon <will.deacon@arm.com>2018-12-06 15:38:49 +0100
commit92a98a2b9f64a8b3c200a7709ceae04d09c39451 (patch)
treef246eca2b042e362d267ec28beb229397ebe631f /kernel/kexec_file.c
parentasm-generic: add kexec_file_load system call to unistd.h (diff)
downloadlinux-92a98a2b9f64a8b3c200a7709ceae04d09c39451.tar.xz
linux-92a98a2b9f64a8b3c200a7709ceae04d09c39451.zip
kexec_file: make kexec_image_post_load_cleanup_default() global
Change this function from static to global so that arm64 can implement its own arch_kimage_file_post_load_cleanup() later using kexec_image_post_load_cleanup_default(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Acked-by: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Baoquan He <bhe@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'kernel/kexec_file.c')
-rw-r--r--kernel/kexec_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index 35cf0ad29718..9ce6672f4fa3 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -76,7 +76,7 @@ void * __weak arch_kexec_kernel_image_load(struct kimage *image)
return kexec_image_load_default(image);
}
-static int kexec_image_post_load_cleanup_default(struct kimage *image)
+int kexec_image_post_load_cleanup_default(struct kimage *image)
{
if (!image->fops || !image->fops->cleanup)
return 0;