Skip to content

Commit d5372c3

Browse files
Vasily Gorbiktorvalds
authored andcommitted
kexec: restore arch_kexec_kernel_image_probe declaration
arch_kexec_kernel_image_probe function declaration has been removed by commit 9ec4ece ("kexec_file,x86,powerpc: factor out kexec_file_ops functions"). Still this function is overridden by couple of architectures and proper prototype declaration is therefore important, so bring it back. This fixes the following sparse warning on s390: arch/s390/kernel/machine_kexec_file.c:333:5: warning: symbol 'arch_kexec_kernel_image_probe' was not declared. Should it be static? Link: http://lkml.kernel.org/r/patch.git-ff1c9045ebdc.your-ad-here.call-01564402297-ext-5690@work.hours Signed-off-by: Vasily Gorbik <[email protected]> Acked-by: Dave Young <[email protected]> Reviewed-by: Bhupesh Sharma <[email protected]> Cc: Eric Biederman <[email protected]> Cc: AKASHI Takahiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7c3a6ae commit d5372c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/kexec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ int kexec_purgatory_get_set_symbol(struct kimage *image, const char *name,
183183
bool get_value);
184184
void *kexec_purgatory_get_symbol_addr(struct kimage *image, const char *name);
185185

186+
int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf,
187+
unsigned long buf_len);
186188
void * __weak arch_kexec_kernel_image_load(struct kimage *image);
187189
int __weak arch_kexec_apply_relocations_add(struct purgatory_info *pi,
188190
Elf_Shdr *section,

0 commit comments

Comments
 (0)