lmb: move lmb_map_update_notify() to EFI
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 16 Feb 2025 11:12:40 +0000 (12:12 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Feb 2025 10:09:33 +0000 (11:09 +0100)
commit41d5734442c03439a534abfc2493d0ce9ca5000a
treedc7dab152c503156aa29f264c4a73675275d2d49
parent08573d7688a8c133bd4a7354cf928f96e778b42a
lmb: move lmb_map_update_notify() to EFI

When building with qemu_arm64_defconfig with CONFIG_CC_OPTIMIZE_FOR_DEBUG=y
and CONFIG_EFI_LOADER=n an error undefined reference to efi_add_memory_map_pg
occurs.

Move the EFI dependent part of lmb_map_update_notify() to the EFI
sub-system.

Reported-by: Liya Huang <1425075683@qq.com>
Acked-by: Liya Huang <1425075683@qq.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_memory.c
lib/lmb.c