diff options
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 46aacdfa4f4d..5a9ca2a1751b 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -1654,7 +1654,7 @@ bool __init_memblock memblock_is_memory(phys_addr_t addr) | |||
1654 | return memblock_search(&memblock.memory, addr) != -1; | 1654 | return memblock_search(&memblock.memory, addr) != -1; |
1655 | } | 1655 | } |
1656 | 1656 | ||
1657 | int __init_memblock memblock_is_map_memory(phys_addr_t addr) | 1657 | bool __init_memblock memblock_is_map_memory(phys_addr_t addr) |
1658 | { | 1658 | { |
1659 | int i = memblock_search(&memblock.memory, addr); | 1659 | int i = memblock_search(&memblock.memory, addr); |
1660 | 1660 | ||
@@ -1690,13 +1690,13 @@ int __init_memblock memblock_search_pfn_nid(unsigned long pfn, | |||
1690 | * RETURNS: | 1690 | * RETURNS: |
1691 | * 0 if false, non-zero if true | 1691 | * 0 if false, non-zero if true |
1692 | */ | 1692 | */ |
1693 | int __init_memblock memblock_is_region_memory(phys_addr_t base, phys_addr_t size) | 1693 | bool __init_memblock memblock_is_region_memory(phys_addr_t base, phys_addr_t size) |
1694 | { | 1694 | { |
1695 | int idx = memblock_search(&memblock.memory, base); | 1695 | int idx = memblock_search(&memblock.memory, base); |
1696 | phys_addr_t end = base + memblock_cap_size(base, &size); | 1696 | phys_addr_t end = base + memblock_cap_size(base, &size); |
1697 | 1697 | ||
1698 | if (idx == -1) | 1698 | if (idx == -1) |
1699 | return 0; | 1699 | return false; |
1700 | return (memblock.memory.regions[idx].base + | 1700 | return (memblock.memory.regions[idx].base + |
1701 | memblock.memory.regions[idx].size) >= end; | 1701 | memblock.memory.regions[idx].size) >= end; |
1702 | } | 1702 | } |