mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
ANDROID: GKI: fix build error with mm/memory_hotplug.c and v5.15.144
In the 5.15.144 release, commitd9a9d8effd("memblock: allow to specify flags with memblock_add_node()") changed the memblock_add_node() parameters, which broke the android build due to out-of-tree changes in mm/memory_hotplug.c. Fix this all up by passing in the proper parameters. Fixes:d9a9d8effd("memblock: allow to specify flags with memblock_add_node()") Change-Id: I0d871bec82277823551c45cea23e970ff75c6238 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1516,7 +1516,7 @@ int add_memory_subsection(int nid, u64 start, u64 size)
|
||||
nid = memory_add_physaddr_to_nid(start);
|
||||
|
||||
if (IS_ENABLED(CONFIG_ARCH_KEEP_MEMBLOCK))
|
||||
memblock_add_node(start, size, nid);
|
||||
memblock_add_node(start, size, nid, MEMBLOCK_NONE);
|
||||
|
||||
ret = arch_add_memory(nid, start, size, ¶ms);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user