You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
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 cd5f5cb9fe%5E%21/
This commit is contained in:
committed by
Jianfeng Liu
parent
e9f79f3c92
commit
fcd21bfabe
@@ -876,6 +876,10 @@ int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)
|
||||
return memblock_remove_range(&memblock.reserved, base, size);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_KEEP_MEMBLOCK
|
||||
EXPORT_SYMBOL_GPL(memblock_free);
|
||||
#endif
|
||||
|
||||
int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size)
|
||||
{
|
||||
phys_addr_t end = base + size - 1;
|
||||
|
||||
Reference in New Issue
Block a user