* [PATCH 1/3] linux/mm.h: canonicalize macro PAGE_ALIGNED() definition
@ 2016-09-20 5:34 ` zijun_hu
0 siblings, 0 replies; 2+ messages in thread
From: zijun_hu @ 2016-09-20 5:34 UTC (permalink / raw)
To: Andrew Morton; +Cc: zijun_hu, linux-mm, linux-kernel
From: zijun_hu <zijun_hu@htc.com>
canonicalize macro PAGE_ALIGNED() definition
Signed-off-by: zijun_hu <zijun_hu@htc.com>
---
include/linux/mm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ef815b9..ec68186 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -126,7 +126,7 @@ extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *,
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */
-#define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)addr, PAGE_SIZE)
+#define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE)
/*
* Linux kernel virtual memory manager primitives.
--
1.9.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/3] linux/mm.h: canonicalize macro PAGE_ALIGNED() definition
@ 2016-09-20 5:34 ` zijun_hu
0 siblings, 0 replies; 2+ messages in thread
From: zijun_hu @ 2016-09-20 5:34 UTC (permalink / raw)
To: Andrew Morton; +Cc: zijun_hu, linux-mm, linux-kernel
From: zijun_hu <zijun_hu@htc.com>
canonicalize macro PAGE_ALIGNED() definition
Signed-off-by: zijun_hu <zijun_hu@htc.com>
---
include/linux/mm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ef815b9..ec68186 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -126,7 +126,7 @@ extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *,
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */
-#define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)addr, PAGE_SIZE)
+#define PAGE_ALIGNED(addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE)
/*
* Linux kernel virtual memory manager primitives.
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-20 5:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20 5:34 [PATCH 1/3] linux/mm.h: canonicalize macro PAGE_ALIGNED() definition zijun_hu
2016-09-20 5:34 ` zijun_hu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.