The patch titled Subject: mm/vmalloc: use PAGE_ALIGNED() to check PAGE_SIZE alignment has been added to the -mm tree. Its filename is mm-vmalloc-reuse-page_aligned-to-check-page_size-aligned.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-vmalloc-reuse-page_aligned-to-check-page_size-aligned.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmalloc-reuse-page_aligned-to-check-page_size-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: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx> Subject: mm/vmalloc: use PAGE_ALIGNED() to check PAGE_SIZE alignment We have PAGE_ALIGNED() in mm.h, so let's use it instead of IS_ALIGNED() for checking PAGE_SIZE aligned case. Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/vmalloc.c~mm-vmalloc-reuse-page_aligned-to-check-page_size-aligned mm/vmalloc.c --- a/mm/vmalloc.c~mm-vmalloc-reuse-page_aligned-to-check-page_size-aligned +++ a/mm/vmalloc.c @@ -1085,7 +1085,7 @@ void vm_unmap_ram(const void *mem, unsig BUG_ON(!addr); BUG_ON(addr < VMALLOC_START); BUG_ON(addr > VMALLOC_END); - BUG_ON(!IS_ALIGNED(addr, PAGE_SIZE)); + BUG_ON(!PAGE_ALIGNED(addr)); debug_check_no_locks_freed(mem, size); vmap_debug_free_range(addr, addr+size); _ Patches currently in -mm which might be from shawn.lin@xxxxxxxxxxxxxx are mm-vmalloc-reuse-page_aligned-to-check-page_size-aligned.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