kexec_file,x86,powerpc: factor out kexec_file_ops functions
As arch_kexec_kernel_image_{probe,load}(), arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() are almost duplicated among architectures, they can be commonalized with an architecture-defined kexec_file_ops array. So let's factor them out. Link: http://lkml.kernel.org/r/20180306102303.9063-3-takahiro.akashi@linaro.org Signed-off-by:AKASHI Takahiro <takahiro.akashi@linaro.org> Acked-by:
Dave Young <dyoung@redhat.com> Tested-by:
Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Baoquan He <bhe@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/powerpc/include/asm/kexec.h 1 addition, 1 deletionarch/powerpc/include/asm/kexec.h
- arch/powerpc/kernel/kexec_elf_64.c 1 addition, 1 deletionarch/powerpc/kernel/kexec_elf_64.c
- arch/powerpc/kernel/machine_kexec_file_64.c 3 additions, 36 deletionsarch/powerpc/kernel/machine_kexec_file_64.c
- arch/x86/include/asm/kexec-bzimage64.h 1 addition, 1 deletionarch/x86/include/asm/kexec-bzimage64.h
- arch/x86/kernel/kexec-bzimage64.c 1 addition, 1 deletionarch/x86/kernel/kexec-bzimage64.c
- arch/x86/kernel/machine_kexec_64.c 2 additions, 43 deletionsarch/x86/kernel/machine_kexec_64.c
- include/linux/kexec.h 6 additions, 7 deletionsinclude/linux/kexec.h
- kernel/kexec_file.c 56 additions, 4 deletionskernel/kexec_file.c
Loading
Please register or sign in to comment