diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-10-26 12:26:57 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-10-28 19:36:32 +0100 |
commit | f23bef34d34b6325916daddc4cfdeee53d5139e6 (patch) | |
tree | caf9af34b006ef5b3d94278c58f52f714e9066dc /arch | |
parent | arm64: cachetype: fix definitions of ICACHEF_* flags (diff) | |
download | linux-f23bef34d34b6325916daddc4cfdeee53d5139e6.tar.xz linux-f23bef34d34b6325916daddc4cfdeee53d5139e6.zip |
arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
The <linux/mm.h> 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 <kuleshovmail@gmail.com>
Acked-by: Laura Abbott <laura@labbott.name>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/mm/pageattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |