arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
PATCH 1/1 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 <[email protected]>
--- arch/arm64/mm/pageattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/mm/pageattr.c +1 -1
@@ -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 );
Signature · 1 line
2.6.0
Quoted 4 lines · Alexander Kuleshov
The <
linux/mm.h> already provides thePAGE_ALIGNEDmacro. Let's use this macro instead ofIS_ALIGNEDand passingPAGE_SIZEdirectly.Signed-off-by Alexander Kuleshov <[email protected]>
Acked-by Laura Abbott <[email protected]>
Quoted 18 lines
--- arch/arm64/mm/pageattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/mm/pageattr.c +1
-1@@ -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 );
Quoted 4 lines · Alexander Kuleshov
The <
linux/mm.h> already provides thePAGE_ALIGNEDmacro. Let's use this macro instead ofIS_ALIGNEDand passingPAGE_SIZEdirectly.Signed-off-by Alexander Kuleshov <[email protected]>
Queued for 4.4. Thanks.
Signature · 1 line
Catalin