aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
authorFanjun Kong <[email protected]>2022-05-26 14:02:57 +0000
committerakpm <[email protected]>2022-06-17 02:48:27 +0000
commit0b82ade6c042907e4f24bbe826958a896d24700d (patch)
treef4b5c379162f3442e03ec54f5f12e6d3e9e6ce1d /mm/sparse-vmemmap.c
parentmm/x86: remove dead code for hugetlbpage.c (diff)
downloadkernel-0b82ade6c042907e4f24bbe826958a896d24700d.tar.gz
kernel-0b82ade6c042907e4f24bbe826958a896d24700d.zip
mm: use PAGE_ALIGNED instead of IS_ALIGNED
<linux/mm.h> 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/[email protected] Signed-off-by: Fanjun Kong <[email protected]> Acked-by: Muchun Song <[email protected]> Reviewed-by: Miaohe Lin <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse-vmemmap.c')
-rw-r--r--mm/sparse-vmemmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c
index f4fa61dbbee3..49cb15cbe590 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 {