The patch titled Subject: mm/memblock.c: memblock_is_memory()/reserved() can be boolean has been added to the -mm tree. Its filename is mm-memblock-memblock_is_memory-reserved-can-be-boolean.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memblock-memblock_is_memory-reserved-can-be-boolean.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memblock-memblock_is_memory-reserved-can-be-boolean.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yaowei Bai <baiyaowei@xxxxxxxxxxxxxxxxxxxx> Subject: mm/memblock.c: memblock_is_memory()/reserved() can be boolean Make memblock_is_memory() and memblock_is_reserved return bool to improve readability due to these particular functions only using either one or zero as their return value. No functional change. Signed-off-by: Yaowei Bai <baiyaowei@xxxxxxxxxxxxxxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/memblock.h | 4 ++-- mm/memblock.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN include/linux/memblock.h~mm-memblock-memblock_is_memory-reserved-can-be-boolean include/linux/memblock.h --- a/include/linux/memblock.h~mm-memblock-memblock_is_memory-reserved-can-be-boolean +++ a/include/linux/memblock.h @@ -318,9 +318,9 @@ phys_addr_t memblock_mem_size(unsigned l phys_addr_t memblock_start_of_DRAM(void); phys_addr_t memblock_end_of_DRAM(void); void memblock_enforce_memory_limit(phys_addr_t memory_limit); -int memblock_is_memory(phys_addr_t addr); +bool memblock_is_memory(phys_addr_t addr); int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); -int memblock_is_reserved(phys_addr_t addr); +bool memblock_is_reserved(phys_addr_t addr); bool memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); extern void __memblock_dump_all(void); diff -puN mm/memblock.c~mm-memblock-memblock_is_memory-reserved-can-be-boolean mm/memblock.c --- a/mm/memblock.c~mm-memblock-memblock_is_memory-reserved-can-be-boolean +++ a/mm/memblock.c @@ -1509,12 +1509,12 @@ static int __init_memblock memblock_sear return -1; } -int __init memblock_is_reserved(phys_addr_t addr) +bool __init memblock_is_reserved(phys_addr_t addr) { return memblock_search(&memblock.reserved, addr) != -1; } -int __init_memblock memblock_is_memory(phys_addr_t addr) +bool __init_memblock memblock_is_memory(phys_addr_t addr) { return memblock_search(&memblock.memory, addr) != -1; } _ Patches currently in -mm which might be from baiyaowei@xxxxxxxxxxxxxxxxxxxx are mm-hugetlb-is_file_hugepages-can-be-boolean.patch mm-memblock-memblock_is_memory-reserved-can-be-boolean.patch fs-statc-drop-the-last-new_valid_dev-check.patch include-linux-kdev_th-remove-new_valid_dev.patch ipc-shm-is_file_shm_hugepages-can-be-boolean.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html