mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 07:21:27 +00:00
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>
This commit is contained in:
parent
4e21565b7f
commit
92a98a2b9f
2 changed files with 2 additions and 1 deletions
|
@ -143,6 +143,7 @@ extern const struct kexec_file_ops * const kexec_file_loaders[];
|
||||||
|
|
||||||
int kexec_image_probe_default(struct kimage *image, void *buf,
|
int kexec_image_probe_default(struct kimage *image, void *buf,
|
||||||
unsigned long buf_len);
|
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
|
* struct kexec_buf - parameters for finding a place for a buffer in memory
|
||||||
|
|
|
@ -76,7 +76,7 @@ void * __weak arch_kexec_kernel_image_load(struct kimage *image)
|
||||||
return kexec_image_load_default(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)
|
if (!image->fops || !image->fops->cleanup)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue