Skip to content

Commit b224444

Browse files
AaronDewesamazingfate
authored andcommitted
fix: export memblock_free
This is required for drivers/gpu/drm/rockchip/rockchip_drm_logo.c to compile properly as a module. Without this patch, build including rockchip-drm fail for me with ERROR: modpost: "memblock_free" undefined! cherry-picked from https://android.googlesource.com/kernel/common/+/cd5f5cb9fe677466551e44039b31198e7b0dc812%5E%21/
1 parent 79467f9 commit b224444

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mm/memblock.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,10 @@ int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)
875875
return memblock_remove_range(&memblock.reserved, base, size);
876876
}
877877

878+
#ifdef CONFIG_ARCH_KEEP_MEMBLOCK
879+
EXPORT_SYMBOL_GPL(memblock_free);
880+
#endif
881+
878882
int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size)
879883
{
880884
phys_addr_t end = base + size - 1;

0 commit comments

Comments
 (0)