Re: [PATCH] efi/libstub: Move efi_relocate_kernel() into its only remaining user
Thomas Huth <[email protected]>
| Newsgroups | org.kernel.vger.linux-efi |
|---|---|
| Message-ID | <[email protected]> |
On 28/04/2026 19.06, Ard Biesheuvel wrote: > From: Ard Biesheuvel <[email protected]> > > 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. > > Cc: WANG Rui <[email protected]> > Cc: Huacai Chen <[email protected]> > Signed-off-by: Ard Biesheuvel <[email protected]> > --- > Unless there are any objections, I will queue this up and rebase the > LoongArch changes adding efi_cache_sync_image() on top of it. > > drivers/firmware/efi/libstub/Makefile | 2 +- > drivers/firmware/efi/libstub/efistub.h | 7 - > drivers/firmware/efi/libstub/loongarch-stub.c | 79 ++++++++++ > drivers/firmware/efi/libstub/mem.c | 82 ++++++++++ > drivers/firmware/efi/libstub/relocate.c | 166 -------------------- > 5 files changed, 162 insertions(+), 174 deletions(-) Reviewed-by: Thomas Huth <[email protected]>