diff options
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 82aa349d2f7a..931eef145af5 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -41,7 +41,8 @@ static int memblock_memory_in_slab __initdata_memblock = 0; | |||
41 | static int memblock_reserved_in_slab __initdata_memblock = 0; | 41 | static int memblock_reserved_in_slab __initdata_memblock = 0; |
42 | 42 | ||
43 | /* inline so we don't get a warning when pr_debug is compiled out */ | 43 | /* inline so we don't get a warning when pr_debug is compiled out */ |
44 | static inline const char *memblock_type_name(struct memblock_type *type) | 44 | static __init_memblock const char * |
45 | memblock_type_name(struct memblock_type *type) | ||
45 | { | 46 | { |
46 | if (type == &memblock.memory) | 47 | if (type == &memblock.memory) |
47 | return "memory"; | 48 | return "memory"; |
@@ -756,7 +757,7 @@ int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, | |||
756 | return ret; | 757 | return ret; |
757 | 758 | ||
758 | for (i = start_rgn; i < end_rgn; i++) | 759 | for (i = start_rgn; i < end_rgn; i++) |
759 | type->regions[i].nid = nid; | 760 | memblock_set_region_node(&type->regions[i], nid); |
760 | 761 | ||
761 | memblock_merge_regions(type); | 762 | memblock_merge_regions(type); |
762 | return 0; | 763 | return 0; |