]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Use typedef for relocate_kernel_fn function prototype
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 9 Jan 2025 14:04:21 +0000 (14:04 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 14 Jan 2025 12:09:08 +0000 (13:09 +0100)
commit7c61a3d8f7a8cf0f0cbdc8459dd86782ba7285f1
tree15155629714870fadd0634e11ae78684ce14fc8a
parente536057543791fbfa0d979f4e782933ea312c38c
x86/kexec: Use typedef for relocate_kernel_fn function prototype

Both i386 and x86_64 now copy the relocate_kernel() function into the control
page and execute it from there, using an open-coded function pointer.

Use a typedef for it instead.

  [ bp: Put relocate_kernel_ptr ptr arithmetic on a single line. ]

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250109140757.2841269-10-dwmw2@infradead.org
arch/x86/include/asm/kexec.h
arch/x86/kernel/machine_kexec_32.c
arch/x86/kernel/machine_kexec_64.c