X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mm%2Fmemblock.c;h=931eef145af5eed370ed6f2b0c9dc577295be6ff;hb=65821635d26d3173a3b22781e2c60d5e6fcaeb22;hp=82aa349d2f7a040b489bee441bf848b61119f788;hpb=de390bba797aa9a554bc1769b6a8771605854d79;p=~andy%2Flinux diff --git a/mm/memblock.c b/mm/memblock.c index 82aa349d2f7..931eef145af 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -41,7 +41,8 @@ static int memblock_memory_in_slab __initdata_memblock = 0; static int memblock_reserved_in_slab __initdata_memblock = 0; /* inline so we don't get a warning when pr_debug is compiled out */ -static inline const char *memblock_type_name(struct memblock_type *type) +static __init_memblock const char * +memblock_type_name(struct memblock_type *type) { if (type == &memblock.memory) return "memory"; @@ -756,7 +757,7 @@ int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, return ret; for (i = start_rgn; i < end_rgn; i++) - type->regions[i].nid = nid; + memblock_set_region_node(&type->regions[i], nid); memblock_merge_regions(type); return 0;