Skip to content

Commit

Permalink
arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Kuleshov authored and Catalin Marinas committed Oct 28, 2015
1 parent 59f2413 commit f23bef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f23bef3

Please sign in to comment.