The patch titled Subject: hugetlb: alloc_bootmem_huge_page(): use IS_ALIGNED() has been added to the -mm tree. Its filename is hugetlb-alloc_bootmem_huge_page-use-is_aligned.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/hugetlb-alloc_bootmem_huge_page-use-is_aligned.patch echo and later at echo http://ozlabs.org/~akpm/mmotm/broken-out/hugetlb-alloc_bootmem_huge_page-use-is_aligned.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: Luiz Capitulino <lcapitulino@xxxxxxxxxx> Subject: hugetlb: alloc_bootmem_huge_page(): use IS_ALIGNED() No reason to duplicate the code of an existing macro. Signed-off-by: Luiz Capitulino <lcapitulino@xxxxxxxxxx> Cc: Andi Kleen <andi@xxxxxxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Yasuaki Ishimatsu <isimatu.yasuaki@xxxxxxxxxxxxxx> Cc: Yinghai Lu <yinghai@xxxxxxxxxx> Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/hugetlb.c~hugetlb-alloc_bootmem_huge_page-use-is_aligned mm/hugetlb.c --- a/mm/hugetlb.c~hugetlb-alloc_bootmem_huge_page-use-is_aligned +++ a/mm/hugetlb.c @@ -1457,7 +1457,7 @@ int __weak alloc_bootmem_huge_page(struc return 0; found: - BUG_ON((unsigned long)virt_to_phys(m) & (huge_page_size(h) - 1)); + BUG_ON(!IS_ALIGNED(virt_to_phys(m), huge_page_size(h))); /* Put them into a private list first because mem_map is not up yet */ list_add(&m->list, &huge_boot_pages); m->hstate = h; _ Patches currently in -mm which might be from lcapitulino@xxxxxxxxxx are hugetlb-fix-hugepages=-entry-in-kernel-parameterstxt.patch hugetlb-alloc_bootmem_huge_page-use-is_aligned.patch hugetlb-hugetlb_register_all_nodes-add-__init-marker.patch linux-next.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