projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f2413
)
arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
author
Alexander Kuleshov
<kuleshovmail@gmail.com>
Mon, 26 Oct 2015 11:26:57 +0000
(17:26 +0600)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Wed, 28 Oct 2015 18:36:32 +0000
(18:36 +0000)
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>
arch/arm64/mm/pageattr.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/pageattr.c
b/arch/arm64/mm/pageattr.c
index e47ed1c5dce1bbe50c22094b17cc12e82dde6cdf..3571c7309c5e79f0d2d3e20986a581ffb6454dae 100644
(file)
--- 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);