From: Alexander Kuleshov Date: Mon, 26 Oct 2015 11:26:57 +0000 (+0600) Subject: arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f23bef34d34b6325916daddc4cfdeee53d5139e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED The already provides the PAGE_ALIGNED macro. Let's use this macro instead of IS_ALIGNED and passing PAGE_SIZE directly. Signed-off-by: Alexander Kuleshov Acked-by: Laura Abbott Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c index e47ed1c5dce1..3571c7309c5e 100644 --- a/arch/arm64/mm/pageattr.c +++ b/arch/arm64/mm/pageattr.c @@ -45,7 +45,7 @@ static int change_memory_common(unsigned long addr, int numpages, int ret; struct page_change_data data; - if (!IS_ALIGNED(addr, PAGE_SIZE)) { + if (!PAGE_ALIGNED(addr)) { start &= PAGE_MASK; end = start + size; WARN_ON_ONCE(1);