Commit 567d117b authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Linus Torvalds

mm/memblock.c: rename local variable of memblock_type to 'type'

Since commit e3239ff9 ("memblock: Rename memblock_region to
memblock_type and memblock_property to memblock_region"), all local
variables of the membock_type type were renamed to 'type'.  This commit
renames all remaining local variables with the memblock_type type to the
same view.
Signed-off-by: default avatarAlexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 230ac719
...@@ -615,14 +615,14 @@ static int __init_memblock memblock_add_region(phys_addr_t base, ...@@ -615,14 +615,14 @@ static int __init_memblock memblock_add_region(phys_addr_t base,
int nid, int nid,
unsigned long flags) unsigned long flags)
{ {
struct memblock_type *_rgn = &memblock.memory; struct memblock_type *type = &memblock.memory;
memblock_dbg("memblock_add: [%#016llx-%#016llx] flags %#02lx %pF\n", memblock_dbg("memblock_add: [%#016llx-%#016llx] flags %#02lx %pF\n",
(unsigned long long)base, (unsigned long long)base,
(unsigned long long)base + size - 1, (unsigned long long)base + size - 1,
flags, (void *)_RET_IP_); flags, (void *)_RET_IP_);
return memblock_add_range(_rgn, base, size, nid, flags); return memblock_add_range(type, base, size, nid, flags);
} }
int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size) int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size)
...@@ -835,10 +835,10 @@ void __init_memblock __next_reserved_mem_region(u64 *idx, ...@@ -835,10 +835,10 @@ void __init_memblock __next_reserved_mem_region(u64 *idx,
phys_addr_t *out_start, phys_addr_t *out_start,
phys_addr_t *out_end) phys_addr_t *out_end)
{ {
struct memblock_type *rsv = &memblock.reserved; struct memblock_type *type = &memblock.reserved;
if (*idx >= 0 && *idx < rsv->cnt) { if (*idx >= 0 && *idx < type->cnt) {
struct memblock_region *r = &rsv->regions[*idx]; struct memblock_region *r = &type->regions[*idx];
phys_addr_t base = r->base; phys_addr_t base = r->base;
phys_addr_t size = r->size; phys_addr_t size = r->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment