]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
kexec_file: make kexec_image_post_load_cleanup_default() global
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 15 Nov 2018 05:52:41 +0000 (14:52 +0900)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 14:38:49 +0000 (14:38 +0000)
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>
include/linux/kexec.h
kernel/kexec_file.c

index 9e4e638fb5051b1337718535db5ae20b7a63c07c..49ab758f4d915d71c7f2b7dcf69ba96956e0f477 100644 (file)
@@ -143,6 +143,7 @@ extern const struct kexec_file_ops * const kexec_file_loaders[];
 
 int kexec_image_probe_default(struct kimage *image, void *buf,
                              unsigned long buf_len);
+int kexec_image_post_load_cleanup_default(struct kimage *image);
 
 /**
  * struct kexec_buf - parameters for finding a place for a buffer in memory
index 35cf0ad29718ffdb0a35dd9c8b2313645c91c6fd..9ce6672f4fa3773137c78a4e25716cd9993a4aed 100644 (file)
@@ -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;