mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
@ 2015-10-26 11:26 Alexander Kuleshov
  2015-10-26 20:07 ` Laura Abbott
  2015-10-28 18:36 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kuleshov @ 2015-10-26 11:26 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: Will Deacon, Laura Abbott, Daniel Borkmann, Alexei Starovoitov,
	linux-arm-kernel, linux-kernel, Alexander Kuleshov

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>
---
 arch/arm64/mm/pageattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c
index e47ed1c..3571c73 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);
-- 
2.6.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-28 18:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 11:26 [PATCH] arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED Alexander Kuleshov
2015-10-26 20:07 ` Laura Abbott
2015-10-28 18:36 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome