]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
efi/libstub: Move efi_relocate_kernel() into its only remaining user
authorArd Biesheuvel <ardb@kernel.org>
Tue, 28 Apr 2026 10:38:47 +0000 (12:38 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 29 Apr 2026 06:55:58 +0000 (08:55 +0200)
commit883a32793c86091ea37bb84f88cc697d019e7a5d
tree143835fdf908d6277ff0be49dc53ff2fa2acf279
parentb336e40c62fbdc4b8a1f09a4ada31f4a90c69eb1
efi/libstub: Move efi_relocate_kernel() into its only remaining user

LoongArch is the only arch that still uses efi_relocate_kernel(), so
before making changes to it that LoongArch needs, turn it into a private
function. Move efi_low_alloc_above() into mem.c while at it, and drop
the relocate.c source file altogether.

Tested-by: WANG Rui <wangrui@loongson.cn>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/loongarch-stub.c
drivers/firmware/efi/libstub/mem.c
drivers/firmware/efi/libstub/relocate.c [deleted file]