From: Fanjun Kong Date: Thu, 26 May 2022 14:02:57 +0000 (+0800) Subject: mm: use PAGE_ALIGNED instead of IS_ALIGNED X-Git-Tag: v6.1-rc5~688^2~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b82ade6c042907e4f24bbe826958a896d24700d;p=platform%2Fkernel%2Flinux-starfive.git mm: use PAGE_ALIGNED instead of IS_ALIGNED already provides the PAGE_ALIGNED macro. Let's use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly. Link: https://lkml.kernel.org/r/20220526140257.1568744-1-bh1scw@gmail.com Signed-off-by: Fanjun Kong Acked-by: Muchun Song Reviewed-by: Miaohe Lin Signed-off-by: Andrew Morton --- diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index f4fa61d..49cb15c 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -200,8 +200,8 @@ static int vmemmap_remap_range(unsigned long start, unsigned long end, unsigned long next; pgd_t *pgd; - VM_BUG_ON(!IS_ALIGNED(start, PAGE_SIZE)); - VM_BUG_ON(!IS_ALIGNED(end, PAGE_SIZE)); + VM_BUG_ON(!PAGE_ALIGNED(start)); + VM_BUG_ON(!PAGE_ALIGNED(end)); pgd = pgd_offset_k(addr); do {